public void TestInitialize() { DependencyHelper.Initialize(); IUnityContainer container = DependencyHelper.Container; _mockDbContext = new Mock<DatabaseContext>(); container.RegisterInstance<DatabaseContext>(_mockDbContext.Object); _employeeController = container.Resolve<EmployeesController>(); _fakeEmployeeDbSet = new FakeEmployeeSet(); }
public void TestInitialize() { DependencyHelper.Initialize(); IUnityContainer container = DependencyHelper.Container; _mockDbContext = new Mock <DatabaseContext>(); container.RegisterInstance <DatabaseContext>(_mockDbContext.Object); _employeeController = container.Resolve <EmployeesController>(); _fakeEmployeeDbSet = new FakeEmployeeSet(); }