public void SetVendorDetails_SetsData()
        {
            //Arrange
            MockVendorService                  mockVendorService = new MockVendorService();
            IVendorTransactionListView         mockview          = new MockVendorTransactionListView();
            VendorTransactionListViewPresenter target            = new TestableVendorTransactionListViewPresenter(mockview, mockVendorService);
            string VendorID = "1";

            mockVendorService.GetTransactionByVendorRetVal = new DataTable();
            target.VendorId = VendorID;
            //Act
            target.SetVendorDetails();

            //Assert
            Assert.AreSame(mockview.VendorTransaction, mockVendorService.GetTransactionByVendorRetVal);
        }
        public void SetVendorDataWithTransactionCount_SetsData()
        {
            //Arrange
            MockVendorService       mockVendorService = new MockVendorService();
            IVendorListView         mockview          = new MockVendorListView();
            VendorListViewPresenter target            = new TestableVendorListViewPresenter(mockview, mockVendorService);

            mockVendorService.GetAllVendorsWithTransactionCountRetVal = new DataTable();

            //Act
            target.SetVendorDataWithTransactionCount();

            //Assert
            Assert.AreSame(mockview.VendorDataWithTransactionCount, mockVendorService.GetAllVendorsWithTransactionCountRetVal);
            Assert.IsInstanceOfType(mockview.VendorDataWithTransactionCount, typeof(DataTable));
            Assert.IsNotNull(mockview.VendorDataWithTransactionCount);
        }