public void ExceptionTestFor_LoanDetailsNotFoundforLoan() { Loan loan = new Loan() { BorrowerId = 2 }; //Assert var ex = Assert.Throws <LoandetailsNotFoundException>(() => _LoanClerkServices.SearchLoan(loan.BorrowerId)); Assert.Equal("Loan Details Not Found ", ex.Messages); }
public void Test_for_SearchLoan() { Borrowers borrowers = new Borrowers() { BorrowerId = 1 }; var Result = _LoanClerkServices.SearchLoan(borrowers.BorrowerId); var GetLoan = _LoanClerkServices.GetLoan(borrowers.BorrowerId); Assert.Equal(GetLoan, Result); }