public async Task DeleteFieldReturnsNoContentAndCorrectContentType() { // Given A.CallTo(() => _fakeCommand.Delete(A <Guid> .Ignored)).Returns(Task.CompletedTask); // When HttpResponseMessage response = await Client.DeleteAsync(EndPointFactory.DeleteEndpoint()); // Then response.StatusCode.Should().Be(HttpStatusCode.NoContent); A.CallTo(() => _fakeCommand.Delete(A <Guid> .Ignored)).MustHaveHappenedOnceExactly(); }