public void Get_Binding_When_Both_Binding_Mechansims_Used() { // Arrange var strategy = new AttributeBasedPresenterDiscoveryStrategy(); IView<CreateTaskModel> createTaskView = new CreateTaskView(); //Act var actualBinding = strategy.GetBinding(createTaskView); // Assert Assert.IsTrue(actualBinding.Bindings.Any()); Assert.IsTrue(actualBinding.Bindings.First().PresenterType == typeof(CreateTaskPresenter)); }
public void GetBinding_When_Valid_View_Passed_In() { // Arrange var strategy = new AttributeBasedPresenterDiscoveryStrategy(); IView<MainFormModel> mainView = new MainView(); // Act var actualBinding = strategy.GetBinding(mainView); // Assert Assert.IsTrue(actualBinding.Bindings.Any()); Assert.IsTrue(actualBinding.Bindings.First().PresenterType == typeof(MainEntryMenuPresenter)); }