public void ProxyFluentDecoratorStrategyConfiguration_WithCtorParam_Five(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration) { Func <int, string, double, float, byte, IBasicService> func = (i, s, d, f, b) => new BasicService(); configuration.WithCtorParam(func); strategy.Received().WithCtorParam(func); }
public void FluentDecoratorWithCtor_When([Freeze] ConstructorParameterInfo constructorParameterInfo, [Freeze] IFluentDecoratorStrategyConfiguration strategyConfiguration, FluentDecoratorWithCtorConfiguration <int> configuration) { configuration.When.InjectedInto <BasicService>(); strategyConfiguration.Received().When.InjectedInto <BasicService>(); }
public void ProxyFluentDecoratorStrategyConfiguration_WithCtorParam_Two(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration) { Func <int, string, IBasicService> func = (i, s) => new BasicService(); configuration.WithCtorParam(func); strategy.Received().WithCtorParam(func); }
public void ProxyFluentDecoratorStrategyConfiguration_WithCtorParam(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration) { configuration.WithCtorParam <IBasicService>(); strategy.Received().WithCtorParam <IBasicService>(); }
public void ProxyFluentDecoratorStrategyConfiguration_ApplyAfterLifestyle(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration) { configuration.ApplyAfterLifestyle(); strategy.Received().ApplyAfterLifestyle(); }
public void ProxyFluentDecoratorStrategyConfiguration_When(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration) { configuration.When.InjectedInto <BasicService>(); strategy.Received().When.InjectedInto <BasicService>(); }
public void ProxyFluentDecoratorStrategyConfiguration_As(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration) { configuration.As(typeof(int)); strategy.Received().As(typeof(int)); }