public async Task DeleteImage_NotFound() { // Arrange // Act HttpResponseMessage response = await controller.Delete("3617ebac-a459-xxxx-bb15-9be01b06cc48"); // Assert Assert.AreEqual(response.StatusCode, HttpStatusCode.NotFound); }
public async Task ReturnsNotFoundWhenIdIsMissing() { var result = await _controller.Delete(Guid.Empty); result.Should().BeOfType <NotFoundObjectResult>(); }