public QuarryControllerTest() { this.CreateAppContext(); // Automapper initializers Mapper.AddProfile <QuarryMappingProfile>(); Mapper.AddProfile <WidgetMappingProfile>(); // setting up the context and repositories this.QuarryDbContext = this.CreateDbContext <QuarryDbContext>(); QuarryRepository quarryRepository = new QuarryRepository(this.QuarryDbContext); QuarryDomain quarryDomain = new QuarryDomain(quarryRepository); QuarryDashboardDomain dashboardDomain = new QuarryDashboardDomain(quarryRepository); this.WidgetDbContext = this.CreateDbContext <WidgetDbContext>(); WidgetRepository widgetRepository = new WidgetRepository(this.WidgetDbContext); WidgetDomain widgetDomain = new WidgetDomain(widgetRepository); this.Controller = new QuarryController(quarryDomain, dashboardDomain, widgetDomain); }
public QuarryControllerTest() { this.CreateAppContext(); // Automapper initializers Mapper.AddProfile<QuarryMappingProfile>(); Mapper.AddProfile<WidgetMappingProfile>(); // setting up the context and repositories this.QuarryDbContext = this.CreateDbContext<QuarryDbContext>(); QuarryRepository quarryRepository = new QuarryRepository(this.QuarryDbContext); QuarryDomain quarryDomain = new QuarryDomain(quarryRepository); QuarryDashboardDomain dashboardDomain = new QuarryDashboardDomain(quarryRepository); this.WidgetDbContext = this.CreateDbContext<WidgetDbContext>(); WidgetRepository widgetRepository = new WidgetRepository(this.WidgetDbContext); WidgetDomain widgetDomain = new WidgetDomain(widgetRepository); this.Controller = new QuarryController(quarryDomain, dashboardDomain, widgetDomain); }
public QuarryDomain(QuarryRepository quarryRepository) { this.quarryRepository = quarryRepository; }
public QuarryDashboardDomain(QuarryRepository quarryRepository) { this.repository = quarryRepository; }