public void Test2() { var carsService = new OwnedCarRepository(Ownedcontextmock.Object); var x = carsService.DeleteCar("C001"); Assert.IsNotNull(x); }
public void Test1() { var carsService = new OwnedCarRepository(Ownedcontextmock.Object); var carslist = carsService.GetCar("C001"); Assert.AreEqual(1, carslist.Count()); }