public async Task UpdateBookingStatusAsync_NoRestrictions_Success() { // Arrange moqService.Setup(x => x.UpdateBookingStatusAsync(It.IsAny <int>(), It.IsAny <BookingStatus>())).ReturnsAsync(expectedBooking); // Act var response = await controller.UpdateBookingStatusAsync(bookingId, bookingStatus) as ObjectResult; var actualBooking = response.Value; // Assert moqService.Verify(); Assert.IsInstanceOfType(response, typeof(OkObjectResult)); Assert.AreEqual(expectedBooking, actualBooking); }