コード例 #1
0
        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);
        }
コード例 #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);
        }
コード例 #3
0
        protected ICarModelTypeService GetService()
        {
            var service = new CarModelTypeService();

            return(service);
        }