public void GetCarByIdNotFound() { using (var Repo = new SQLCarRepository(options)) { var GetCarById = Repo.GetCar(99); GetCarById.ShouldBeNull(); } }
public void GetCarByIdFromTable() { using (var Repo = new SQLCarRepository(options)) { Repo.CreateCar(CarToCreate); var GetCarById = Repo.GetCar(1); GetCarById.Equals(ExpectedCar).ShouldBeTrue(); } }