private void When_MainFormInteractorWithLoader()
        {
            Assert.IsNotNull(dlgFactory, "Make sure you have called SetupMainFormInteractor to set up all mocks and stubs");
            var services = new ServiceContainer();

            services.AddService <IDialogFactory>(dlgFactory.Object);
            services.AddService <IServiceFactory>(svcFactory.Object);
            services.AddService <IDecompilerShellUiService>(uiSvc.Object);
            interactor = new MainFormInteractor(services);
            interactor.Attach(form.Object);
        }
        private void When_CreateMainFormInteractor()
        {
            Assert.IsNotNull(dlgFactory, "Make sure you have called SetupMainFormInteractor to set up all mocks and stubs");
            var services = new ServiceContainer();

            services.AddService(typeof(IDialogFactory), dlgFactory);
            services.AddService(typeof(IServiceFactory), svcFactory);
            services.AddService <IDecompilerShellUiService>(uiSvc);
            interactor = new MainFormInteractor(services);
            interactor.Attach(form);
        }
Example #3
0
 private void When_CreateMainFormInteractor()
 {
     Assert.IsNotNull(dlgFactory, "Make sure you have called SetupMainFormInteractor to set up all mocks and stubs");
     interactor = new MainFormInteractor(services);
     interactor.Attach(form.Object);
 }