예제 #1
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);
        }
예제 #2
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);
        }
예제 #3
0
        public void ProxyFluentDecoratorStrategyConfiguration_WithCtorParam(IFluentDecoratorStrategyConfiguration strategy, ProxyFluentDecoratorStrategyConfiguration configuration)
        {
            configuration.WithCtorParam <IBasicService>();

            strategy.Received().WithCtorParam <IBasicService>();
        }