public void InitializeShouldCallRegisterAndViewServices() { TestableEmployeeModule module = CreateTestableModule(); module.Initialize(); Assert.AreEqual(typeof(EmployeesController), container.Types[typeof(IEmployeesController)]); Assert.AreEqual(typeof(EmployeeService), container.Types[typeof(IEmployeeService)]); Assert.AreEqual(typeof(EmployeesView), container.Types[typeof(IEmployeesView)]); Assert.AreEqual(typeof(EmployeesListView), container.Types[typeof(IEmployeesListView)]); Assert.AreEqual(typeof(EmployeesListPresenter), container.Types[typeof(IEmployeesListPresenter)]); Assert.AreEqual(typeof(EmployeesDetailsView), container.Types[typeof(IEmployeesDetailsView)]); Assert.AreEqual(typeof(EmployeesDetailsPresenter), container.Types[typeof(IEmployeesDetailsPresenter)]); }
public void RegisterViewsAndServices() { TestableEmployeeModule module = CreateTestableModule(); module.InvokeRegisterViewsAndServices(); Assert.AreEqual(typeof(EmployeesController), container.Types[typeof(IEmployeesController)]); Assert.AreEqual(typeof(EmployeeService), container.Types[typeof(IEmployeeService)]); Assert.AreEqual(typeof(EmployeesView), container.Types[typeof(IEmployeesView)]); Assert.AreEqual(typeof(EmployeesListView), container.Types[typeof(IEmployeesListView)]); Assert.AreEqual(typeof(EmployeesListPresenter), container.Types[typeof(IEmployeesListPresenter)]); Assert.AreEqual(typeof(EmployeesDetailsView), container.Types[typeof(IEmployeesDetailsView)]); Assert.AreEqual(typeof(EmployeesDetailsPresenter), container.Types[typeof(IEmployeesDetailsPresenter)]); }
private TestableEmployeeModule CreateTestableModule() { TestableEmployeeModule module = new TestableEmployeeModule(container, regionManager); return module; }
private TestableEmployeeModule CreateTestableModule() { TestableEmployeeModule module = new TestableEmployeeModule(container, regionManager); return(module); }