예제 #1
0
        public void WhenEmail_IsNotUniqueForBooking_ShouldReturnFalse()
        {
            _bookingRepoMock.Setup(x => x.GetBookingByMeetUpIdAsync(It.IsAny <int>())).ReturnsAsync(
                new List <Booking>()
            {
                new Booking()
                {
                    Email = "*****@*****.**"
                }
            });

            var bookingService = new BookingService(_bookingRepoMock.Object);

            var result = bookingService.CkeckEmailIsUniqueAsync("*****@*****.**", 1).Result;

            result.Should().Be(false);
        }