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

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

            Assert.IsNotNull(loan);
        }