Exemplo n.º 1
0
        public void ConstructionWorksWithSingleAspect()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1());

            // --- Assert
            chain.ShouldHaveCountOf(1);
        }
Exemplo n.º 2
0
        public void ConstructionWorksWithMultipleAspect1()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1(), new Aspect2());

            // --- Assert
            chain.ShouldHaveCountOf(2);
        }
Exemplo n.º 3
0
        public void ConstructionWorksWithMultipleAspect1()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1(), new Aspect2());

            // --- Assert
            chain.ShouldHaveCountOf(2);
        }
Exemplo n.º 4
0
        public void ConstructionWorksWithSingleAspect()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1());

            // --- Assert
            chain.ShouldHaveCountOf(1);
        }
Exemplo n.º 5
0
        public void ConstructionWorksWithMultipleAspect2()
        {
            // --- Arrange
            var chain = new AspectChain(
                new List<IMethodAspect>
                    {
                        new Aspect1(),
                        new Aspect2(),
                        new Aspect3()
                    });

            // --- Assert
            chain.ShouldHaveCountOf(3);
        }
Exemplo n.º 6
0
        public void ConstructionWorksWithMultipleAspect2()
        {
            // --- Arrange
            var chain = new AspectChain(
                new List <IMethodAspect>
            {
                new Aspect1(),
                new Aspect2(),
                new Aspect3()
            });

            // --- Assert
            chain.ShouldHaveCountOf(3);
        }