public void TravelServiceGapTest()
        {
            int gap = Vehicles2.TravelServiceGap(Services1.ByVehicle(Vehicles2.List[0]), Journeys1.ByVehicle(Vehicles2.List[0]));

            Assert.AreEqual(9985, gap);
        }
Exemple #2
0
 public void FindIdTest()
 {
     Assert.AreEqual(3, Services1.FindId());
 }
Exemple #3
0
 public void ByVehicleTest()
 {
     Assert.AreEqual(2, (Services1.ByVehicle(Vehicles2.List[0])).Count);
 }
Exemple #4
0
 public void RecentTest()
 {
     Assert.AreEqual(15, (Services1.Recent(Vehicles2.List[0])).Odometer);
 }
Exemple #5
0
 public void DeleteTest()
 {
     Services1.Delete(Services1.List[0]);
     Assert.AreEqual(1, Services1.List.Count);
 }
Exemple #6
0
        public void EditTest()
        {
            Services1.Edit(Services1.List[0], 300, 500m, new DateTime(2018, 12, 20));

            Assert.AreEqual(300, Services1.List[0].Odometer);
        }