public void PurchaserNameExceptionTest()
 {
     var car = new Car(avto, 0);
     car.Name = "asd";
     car.Cost = 2000;
     car.MaximumNumberOfPassengers = 3;
     Applications app = new UIApplicationsForDelayedDelivery("", car, 20);
 }
 public void CarNumberExceptionTest()
 {
     var car = new Car(avto,0);
     car.Name = "asd";
     car.Cost = 2000;
     car.MaximumNumberOfPassengers = 3;
     Applications app = new UIApplicationsForDelayedDelivery("asd",car,20);
     app.СalculateCost();
 }
 public void CalculateCostTest()
 {
     var car = new Car(avto, 3);
     car.Cost = 2000;
     car.MaximumNumberOfPassengers = 3;
     Applications app = new UIApplicationsForDelayedDelivery("asd", car, 20);
     app.СalculateCost();
     Assert.AreEqual(app.СalculateCost(),1600);
 }