Example #1
0
        public void GetByIdFromRepo()
        {
            FakeLoanRepository repo = new FakeLoanRepository();
            LoanModel          loan = repo.Get(1);

            Assert.IsNotNull(loan);
        }
Example #2
0
        public void GetByIdFromRepoNegative()
        {
            FakeLoanRepository repo = new FakeLoanRepository();
            LoanModel          loan = repo.Get(4);

            Assert.IsNull(loan);
        }
Example #3
0
        public void GetAllFromRepo()
        {
            FakeLoanRepository      repo  = new FakeLoanRepository();
            IEnumerable <LoanModel> loans = repo.GetAll();

            Assert.IsNotNull(loans);
        }