protected ICarsFilterTypesService GetService(ApplicationDbContext dbContext)
        {
            var carModelTypeService = new CarModelTypeService();
            var carYearService      = new CarYearService();
            var carSeriesService    = new CarSeriesService();
            var carPriceService     = this.GetMockedCarPriceService();
            var service             = new CarsFilterTypesService(
                carModelTypeService,
                carYearService,
                carSeriesService,
                carPriceService);

            return(service);
        }
Example #2
0
        public IHomeService GetService(ApplicationDbContext dbContext)
        {
            var carInventoriesService = new CarInventoriesService();
            var carYearService        = new CarYearService();
            var carModelTypeService   = new CarModelTypeService();
            var mockedCarPriceService = new Mock <ICarPriceService>();

            CommonMockServicesMethods.SetupCarPriceService(mockedCarPriceService);
            var service = new HomeService(
                carInventoriesService,
                carYearService,
                carModelTypeService,
                mockedCarPriceService.Object);

            return(service);
        }
        public ICarYearService GetService()
        {
            var service = new CarYearService();

            return(service);
        }