public async Task AddressDestroy_AddressOk_ShouldReturnOkResult() { // Arrange var mock = new Mock <IAddressService>(); var addressId = Guid.NewGuid(); mock.Setup(service => service.Destroy(addressId)).ReturnsAsync(true); // Act AddressController controller = new AddressController(mock.Object); var actionResult = await controller.Destroy(addressId); var result = Assert.IsType <ActionResult <AddressDTO> >(actionResult).Result; var okResult = result as OkResult; // Assert okResult.Should().Equals(HttpStatusCode.OK); }