Inheritance: Gymnastika.Controllers.StartupController
Ejemplo n.º 1
0
        public void RegisterDependencies()
        {
            IUnityContainer container = new UnityContainer();

            MockStartupController controller = new MockStartupController(container);
            controller.CallRegisterDependencies();

            Assert.That(container.IsRegistered<IStartupView>(), Is.True);
            Assert.That(container.IsRegistered<IMainView>(), Is.True);
        }
Ejemplo n.º 2
0
        public void RegisterDependencies()
        {
            IUnityContainer container = new UnityContainer();

            MockStartupController controller = new MockStartupController(container);

            controller.CallRegisterDependencies();

            Assert.That(container.IsRegistered <IStartupView>(), Is.True);
            Assert.That(container.IsRegistered <IMainView>(), Is.True);
        }