protected override void ExecuteBenchmark(IResolveScope scope) { if (scope.Resolve <ImmutableList <IEnumerableService> >().Count() != 5) { throw new Exception("Count does not equal 5"); } }
protected override void ExecuteBenchmark(IResolveScope scope) { if (scope.Resolve <Lazy <ISmallObjectService> >().Value == null) { throw new Exception("Null lazy value"); } }
protected override void Warmup(IResolveScope scope) { var instance = scope.Resolve <IImportMultipleSmallObject>(); if (!ReferenceEquals(instance.SmallObject1, instance.SmallObject2)) { throw new Exception("Not the same instance"); } }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(IOneArgeFactoryService)); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(ISingletonService)); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(ILargeComplexService)); }
public static T Resolve <T>(this IResolveScope scope) { return((T)scope.Resolve(typeof(T))); }
private void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(ISmallObjectService)); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(IImportMultipleSmallObject)); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(IGenericObjectService <ISmallObjectService>)); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve(typeof(IThreeArgRefService)); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve <ISmallObjectService>(); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve <Func <int, string, ITransientService, IThreeArgService1> >()(5, "Hello", new TransientService()); }
protected override void ExecuteBenchmark(IResolveScope scope) { scope.Resolve <Func <ITransientService, ISmallObjectService> >()(new TransientService()); }