Exemple #1
0
        public void Test_Search_Truck_From_Vin_Number()
        {
            IDispatchManager dm = new DispatchManager();

            Assert.IsNull(dm.SearchTruck(new Mock.TruckAPI(), string.Empty));
            Assert.AreEqual(dm.SearchTruck(new Mock.TruckAPI(), "abc").ErrorCode, "7 - Manufacturer is not registered with NHTSA for sale or importation in the U.S. for use on U.S roads; Please contact the manufacturer directly for more information.");
            Assert.AreEqual(dm.SearchTruck(new Mock.TruckAPI(), "5UXWX7C5*BA").ErrorCode, "6 - Incomplete VIN.");
        }