public void GetBankTransactions_OnFolderChange_ReturnTxnList() { //Arrange File.Delete(@"..\..\..\TestFiles3\Ofx_Valid_3.OFX"); //Act BanktransactionsRepo repo = new BanktransactionsRepo { FolderName = @"..\..\..\TestFiles3" }; List <BankTransaction> output1 = repo.GetBankTransactions().ToList(); File.Copy(@"..\..\..\TestFiles1\Ofx_Valid_3.OFX", @"..\..\..\TestFiles3\Ofx_Valid_3.OFX"); System.Threading.Thread.Sleep(5000); output1 = repo.GetBankTransactions().ToList(); //Assert Assert.AreEqual(_bankTransactionList4.Count, output1.Count); CollectionAssert.AreEqual(_bankTransactionList4, output1, new BankTransactionComparer()); }
public void ExtractBankTransactionsFromOfx_OnValidInputs_ReturnTxnList() { //Arrange //Act BanktransactionsRepo repo = new BanktransactionsRepo { FolderName = @"..\..\..\TestFiles2" }; List <BankTransaction> output1 = repo.GetBankTransactions().ToList(); //Assert Assert.AreEqual(_bankTransactionList1.Count, output1.Count); CollectionAssert.AreEqual(_bankTransactionList1, output1, new BankTransactionComparer()); }