public void CarServiceDomainSaveCarTest() { //Arrange SetDependencies(); Car car = new Car(defaultCarId, defaultDate); CarServiceDomain carServiceDomain = new CarServiceDomain(carDao); int actualCars = carDao.GetAllVehicles().Count; //Act carServiceDomain.SaveVechicleOnDb(car); //Assert Assert.Equal(actualCars + 1, carDao.GetAllVehicles().Count); }
public bool IsVehicleSpaceInParkingLot() { List <Car> cars = carDao.GetAllVehicles(); if (cars.Count == limitOfCars) { return(false); } return(true); }
private void GetAllIdsInParkingLot() { carIds = new List <string>(); carIds = CollectCarIds(carDao.GetAllVehicles()); }
public List <Car> GetAllVehicles() { List <Car> cars = carDao.GetAllVehicles(); return(cars); }