Beispiel #1
0
        public void EqualsShouldBeFalse()
        {
            Borrower expected = new Borrower()
            {
                Id        = 1,
                FirstName = "Nicoleta",
                LastName  = "Hermeneanu",
                Email     = "*****@*****.**",
                Gender    = EGenderType.EFemale,
                Address   = new Address(),
                Loans     = new List <Loan> {
                    new Loan()
                },
                ReaderFlg    = true,
                LibrarianFlg = false,
            };

            Assert.IsFalse(expected.Equals(borrower));
        }
Beispiel #2
0
        public void EqualsShouldBeTrue()
        {
            Borrower actual = new Borrower()
            {
                Id        = 1,
                FirstName = "Alexandra",
                LastName  = "Hermeneanu",
                Email     = "*****@*****.**",
                Gender    = EGenderType.EFemale,
                Address   = null,
                Loans     = new List <Loan> {
                    new Loan()
                },
                ReaderFlg    = true,
                LibrarianFlg = false,
            };

            Assert.IsTrue(actual.Equals(borrower));
        }