protected static ICarService GetCarService() { var carRepository = new CarMockRepository().Items; var carCategoryRepository = new CarCategoryMockRepository().Items; var garageRepository = new GarageMockRepository().Items; return(new CarService(carRepository, carCategoryRepository, garageRepository)); }
protected static IGarageService GetGarageService() { var garageRepository = new GarageMockRepository().Items; var carCategoryRepository = new CarCategoryMockRepository().Items; var areaRepository = new AreaMockRepository().Items; return(new GarageService(garageRepository, carCategoryRepository, areaRepository)); }