Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void FluentDecoratorWithCtor_When([Freeze] ConstructorParameterInfo constructorParameterInfo,
                                                 [Freeze] IFluentDecoratorStrategyConfiguration strategyConfiguration,
                                                 FluentDecoratorWithCtorConfiguration <int> configuration)
        {
            configuration.When.InjectedInto <BasicService>();

            strategyConfiguration.Received().When.InjectedInto <BasicService>();
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public void ProxyFluentDecoratorStrategyConfiguration_WithCtorParam(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration)
        {
            configuration.WithCtorParam <IBasicService>();

            strategy.Received().WithCtorParam <IBasicService>();
        }
Esempio n. 5
0
        public void ProxyFluentDecoratorStrategyConfiguration_ApplyAfterLifestyle(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration)
        {
            configuration.ApplyAfterLifestyle();

            strategy.Received().ApplyAfterLifestyle();
        }
Esempio n. 6
0
        public void ProxyFluentDecoratorStrategyConfiguration_When(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration)
        {
            configuration.When.InjectedInto <BasicService>();

            strategy.Received().When.InjectedInto <BasicService>();
        }
Esempio n. 7
0
        public void ProxyFluentDecoratorStrategyConfiguration_As(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration)
        {
            configuration.As(typeof(int));

            strategy.Received().As(typeof(int));
        }