コード例 #1
0
        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);
        }
コード例 #2
0
 public void CreateAuto(AutoDto car)
 {
     WriteActualMethod();
     _autoManager.Create(car.ConvertToEntity());
 }