Пример #1
0
        public void ShouldReturnNullWhenNoGuestsWithEmail()
        {
            IGuestRepository guestRepository = new GuestRepoDouble();

            Guest guest = guestRepository.ReadByEmail("*****@*****.**");

            Assert.IsNull(guest);
        }
Пример #2
0
        public void ShouldReturnGuestWithEmail()
        {
            IGuestRepository guestRepository = new GuestRepoDouble();
            var guestList = guestRepository.ReadAll();

            Guest guest = guestRepository.ReadByEmail("*****@*****.**");

            Assert.AreEqual(guest, guestList[0]);
        }