public UnitOfWork(ApplicationDbContext ctx) { _ctx = ctx; Leads = new LeadsRepository(_ctx); Menus = new MenusRepository(_ctx); WebsitePages = new WebsitePagesRepository(_ctx); GlobalSettings = new GlobalValuesRepository(_ctx); }
public void Setup() { _testRepository = new LeadsRepository(); _testLead = new Lead { LastName = "Kuhn", FirstName = "Richard", Phone = "+37488402975", Project = "Structural and Misc Steel (Fabrication)", PropertyType = "trailer", StartDate = DateTime.Parse("2021-04-11") }; }
public LeadsController() { _leadsRepository = new LeadsRepository(); }