public async Task AddBookingAtLodgmentAsync_LodgmentExist_ShouldReturnBookingConfirmedModel() { // Arrange moqRepository.Setup(x => x.AddBookingAsync(It.IsAny <Booking>())) .ReturnsAsync(expectedBooking); moqRepository.Setup(x => x.GetBookingStatusByNameAsync(It.IsAny <string>())) .ReturnsAsync(expectedBookingStatus); moqLodgmentCalculator.Setup(x => x.CalculateTotalStayAsync( It.IsAny <LodgmentOptionsModel>(), It.IsAny <Lodgment>())) .ReturnsAsync(expectedPrice); // Act var actualBookingConfirmedModel = await service.AddBookingAtLodgmentAsync(lodgment, bookingConfirmationModel); //Assert moqRepository.VerifyAll(); moqLodgmentCalculator.VerifyAll(); Assert.AreEqual(expectedBooking, actualBookingConfirmedModel); }