private ICarPriceService GetMockedCarPriceService()
        {
            var carPriceService = new Mock <ICarPriceService>();

            CommonMockServicesMethods.SetupCarPriceService(carPriceService);

            return(carPriceService.Object);
        }
Beispiel #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);
        }