public async Task UpdateApplicationFullReturnsValidResponse() { // Arrange var entity = _applicationFixture.ConstructTestEntity(); await SetupTestData(entity).ConfigureAwait(false); var request = _applicationFixture.ConstructUpdateApplicationRequest(); var json = JsonConvert.SerializeObject(request); // Act var response = await PatchTestRequestAsync(entity.Id, json).ConfigureAwait(false); response.StatusCode.Should().Be(HttpStatusCode.OK); var responseContent = await response.Content.ReadAsStringAsync().ConfigureAwait(false); var apiEntity = JsonConvert.DeserializeObject <ApplicationResponse>(responseContent); // Assert apiEntity.Should().NotBeNull(); apiEntity.Id.Should().NotBeEmpty(); apiEntity.Status.Should().Be(request.Status); apiEntity.CreatedAt.Should().BeCloseTo(DateTime.UtcNow, 5000); apiEntity.MainApplicant.Should().BeEquivalentTo(request.MainApplicant); apiEntity.OtherMembers.Should().BeEquivalentTo(request.OtherMembers); }