public ReflectionInjectorFactoryBenchmark() { _injectorFactory = new ReflectionInjectorFactory(); _constructorWarriorAndWeapon = typeof(NinjaBarracks).GetConstructor(new[] { typeof(IWarrior), typeof(IWeapon) }); _argumentsWarriorAndWeapon = new object[] { new FootSoldier(), new Sword() }; _injector = _injectorFactory.Create(_constructorWarriorAndWeapon); }
public void Create_ConstructorInfo() { _injectorFactory.Create(_constructorWarriorAndWeapon); }