public void ScenarioOkay01Test_NoReservationsForCarYet() { var car = new StandardAuto { Brand = "PaddyWaggon", DailyRate = 120 }; var autoManager = new AutoManager(); autoManager.Create(car); var reservation = new Reservation { Auto = autoManager.GetAll().OrderBy(c => c.Id).Last(), KundeId = 1, From = DateTime.Today, To = DateTime.Today.AddDays(2) }; ReservationManager.CheckCarAvailability(reservation, Target); }
public void CreateAuto(AutoDto car) { WriteActualMethod(); _autoManager.Create(car.ConvertToEntity()); }