public void Initialize(IStrategy <ISensor> strategy) { Ensure.ArgumentAssignableFrom(typeof(SpecSensorLifetimeStrategy), strategy, "strategy"); this.strategy = (SpecSensorLifetimeStrategy)strategy; this.decoratedBootstrapper.Initialize(strategy); }
public TypedConstructorArgument(Type argumentType, object argumentValue, bool shouldInherit) { Ensure.ArgumentAssignableFrom(argumentType, argumentValue, "argumentValue"); this.ArgumentType = argumentType; this.ArgumentValue = argumentValue; this.ShouldInherit = shouldInherit; this.Name = argumentType.FullName; }