diff --git a/test/OrchardCore.Benchmarks/ShapeProxyBenchmark.cs b/test/OrchardCore.Benchmarks/ShapeProxyBenchmark.cs index 01b0cbc9d88..4273e79d50e 100644 --- a/test/OrchardCore.Benchmarks/ShapeProxyBenchmark.cs +++ b/test/OrchardCore.Benchmarks/ShapeProxyBenchmark.cs @@ -33,14 +33,14 @@ static ShapeProxyBenchmark() } [Benchmark] - public object CreateInstance() + public static object CreateInstance() { var shape = (IShape)Activator.CreateInstance(typeof(ContentItemViewModel)); return shape; } [Benchmark] - public object CreateDynamicProxy() + public static object CreateDynamicProxy() { var options = new ProxyGenerationOptions(); options.AddMixinInstance(new ShapeViewModel()); @@ -48,7 +48,7 @@ public object CreateDynamicProxy() } [Benchmark] - public object CreateCachedProxy() + public static object CreateCachedProxy() { if (_proxyTypesCache.TryGetValue(typeof(MenuItem), out var proxyType)) {