public void VerifyDiscountGrantedByTheOwner(double value)
        {
            var salesman = new SalesMan();
            var manager  = new Manager();
            var owner    = new Owner();

            salesman.SetSucessor(manager);
            manager.SetSucessor(owner);

            //fact
            var handledBy = salesman.HandleDiscount(value);

            Assert.Equal("Discount granted by the owner", handledBy);
        }
        public void VerifyExceptionWhenDiscountPercentOvercomeOneHundred()
        {
            var salesman = new SalesMan();
            var manager  = new Manager();
            var owner    = new Owner();

            salesman.SetSucessor(manager);
            manager.SetSucessor(owner);

            //fact


            //Assert
            Assert.Throws <ArgumentException>(() => salesman.HandleDiscount(101));
        }
        public void VerifyDiscountGrantedByManagerResposibility(double value)
        {
            //Arrange
            var salesman = new SalesMan();
            var manager  = new Manager();
            var owner    = new Owner();

            salesman.SetSucessor(manager);
            manager.SetSucessor(owner);

            //fact
            var handledBy = salesman.HandleDiscount(value);

            //assert
            Assert.Equal("Discount granted by Manager", handledBy);
        }