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

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

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