コード例 #1
0
        public void GetByIdFromRepo()
        {
            FakeLoanRepository repo = new FakeLoanRepository();
            LoanModel          loan = repo.Get(1);

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

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

            Assert.IsNotNull(loans);
        }