public void CancelClosesViewOnTheWorkspace()
        {
            MockFindCustomerView mockView = workItem.SmartParts.AddNew <MockFindCustomerView>();

            mockWorkspace.Show(mockView);

            mockView.ClickCloseButton();

            Assert.AreEqual(0, mockWorkspace.SmartParts.Count);
        }
        public void InformationIsDisplayedWhenNoCustomerIsFound()
        {
            FindCustomerViewPresenter presenter = new FindCustomerViewPresenter(mockService);
            MockFindCustomerView      view      = new MockFindCustomerView();

            presenter.View = view;

            mockService.ResultToReturn = null;
            presenter.FindCustomer(null, null, null, null, null, null, null, null, null, null, null, null);

            Assert.IsTrue(view.ShowMessageCalled);
        }