Inheritance: Gymnastika.Controllers.StartupController
        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);
        }
Beispiel #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);
        }