Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }