public async void DeliveriesController_DeleteDeliveryByIdAsync_should_return_accepted() { // Arrange var fakeGuid = Guid.NewGuid(); // Act var result = await _controller.DeleteDeliveryByIdAsync(fakeGuid) as ObjectResult; // Assert result.Should().NotBeNull(); result.StatusCode.Should().Be((int)HttpStatusCode.Accepted); _service.Verify(x => x.DeleteDeliveryByIdAsync(fakeGuid), Times.Once()); }