public void GetByIdFromRepo() { FakeLoanRepository repo = new FakeLoanRepository(); LoanModel loan = repo.Get(1); Assert.IsNotNull(loan); }
public void GetByIdFromRepoNegative() { FakeLoanRepository repo = new FakeLoanRepository(); LoanModel loan = repo.Get(4); Assert.IsNull(loan); }
public void GetAllFromRepo() { FakeLoanRepository repo = new FakeLoanRepository(); IEnumerable <LoanModel> loans = repo.GetAll(); Assert.IsNotNull(loans); }