Пример #1
0
        public void HadBigMaintenanceTest()
        {
            User   user   = new User(7, "Driver", "Driver", "*****@*****.**", "123", Role.Driver, "HeadClean");
            Tram   tram   = new Tram(1, TramStatus.Idle, 5, user, TramModel.TwaalfG, TramLocation.In, DateTime.Now);
            Repair repair = new Repair(1, DateTime.Parse("18-1-2016"), DateTime.Now, RepairType.Maintenance, "Big Planned Maintenance", "-", new List <User>(), 1);

            logisticRepository.AddTram(tram);
            repair = logisticRepository.AddRepair(repair);

            Assert.IsFalse(logisticRepository.HadBigMaintenance(tram));

            logisticRepository.DeleteService(repair);
            logisticRepository.RemoveTram(tram);
        }