Ejemplo n.º 1
0
        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)]);
        }
Ejemplo n.º 2
0
        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)]);
        }
Ejemplo n.º 3
0
 private TestableEmployeeModule CreateTestableModule()
 {
     TestableEmployeeModule module = new TestableEmployeeModule(container, regionManager);
     return module;
 }
Ejemplo n.º 4
0
        private TestableEmployeeModule CreateTestableModule()
        {
            TestableEmployeeModule module = new TestableEmployeeModule(container, regionManager);

            return(module);
        }