コード例 #1
0
        public void ReturnPublication()
        {
            LoanAccountBook account = new LoanAccountBook();
            Member Member = new Member();
            Member.MemberName = "Nick Gowdy";
            Member.MemberId = Guid.NewGuid();

            Assert.IsTrue(account.ReturnPublication("0-330-28498-3", Member));
        }
コード例 #2
0
        public void LoanPublication()
        {
            LoanAccountBook account = new LoanAccountBook();
            Member Member = new Member();
            Member.MemberName = "Nick Gowdy";
            Member.MemberId = Guid.NewGuid();

            bool isReserved = account.IsReserved("0-330-28498-3");
            if(!isReserved)
            {
                bool LoanSuccess = account.LoanPublication("0-330-28498-3", Member);
                Assert.IsTrue(LoanSuccess);
            }
        }
コード例 #3
0
 public void GetPublicationsCount()
 {
     LoanAccountBook account = new LoanAccountBook();
     int count = account.GetPublicationsCount();
     Assert.Greater(count, 0);
 }
コード例 #4
0
 public void CheckReservedTrue()
 {
     LoanAccountBook account = new LoanAccountBook();
     bool isReserved = account.IsReserved("0-330-28498-3");
     Assert.IsTrue(isReserved);
 }