Exemple #1
0
        public void RentFactoryReturnsRentPerKilometreWhenTypeIsk()
        {
            var rentDC = new RentDataContract()
            {
                Type = "k"
            };

            var rent = RentFactory.CreateRent(rentDC);

            Assert.IsType <RentPerKilometre>(rent);
        }
Exemple #2
0
        public void RentFactoryReturnsRentPerHourWhenTypeIsH()
        {
            var rentDC = new RentDataContract()
            {
                Type = "h"
            };

            var rent = RentFactory.CreateRent(rentDC);

            Assert.IsType <RentPerHour>(rent);
        }
Exemple #3
0
 public CarRentalTests()
 {
     carRental = new CarRental();
     rentDC    = new RentDataContract();
 }