Deliver portable native Architecture B deployment and final verification
This commit is contained in:
1 parent
f451b55de1
commit
36740d2492
92 files changed
+10939
-926
No files matched your search
@@ -14,7 +14,9 @@ public sealed class UpdatePatientTests(PatientApiFixture fixture) : IClassFixtur
|
||||
{
|
||||
using var createdResponse = await fixture.Client.PostAsJsonAsync("/api/patients", new
|
||||
{
|
||||
name = "Steffen Example", dateOfBirth = "1980-01-01", contactInfo = "old@example.test"
|
||||
name = "Steffen Example",
|
||||
dateOfBirth = "1980-01-01",
|
||||
contactInfo = "old@example.test"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.Created, createdResponse.StatusCode);
|
||||
var created = (await createdResponse.Content.ReadFromJsonAsync<Profile>())!;
|
||||
@@ -22,7 +24,8 @@ public sealed class UpdatePatientTests(PatientApiFixture fixture) : IClassFixtur
|
||||
|
||||
using var response = await fixture.Client.PutAsJsonAsync(path, new
|
||||
{
|
||||
name = "Steffen Updated", contactInfo = "new@example.test"
|
||||
name = "Steffen Updated",
|
||||
contactInfo = "new@example.test"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
var expected = created with { Name = "Steffen Updated", ContactInfo = "new@example.test" };
|
||||
@@ -40,7 +43,8 @@ public sealed class UpdatePatientTests(PatientApiFixture fixture) : IClassFixtur
|
||||
var path = $"/api/patients/{Guid.NewGuid()}";
|
||||
using var response = await fixture.Client.PutAsJsonAsync(path, new
|
||||
{
|
||||
name = "Steffen Example", contactInfo = "new@example.test"
|
||||
name = "Steffen Example",
|
||||
contactInfo = "new@example.test"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
|
||||
Assert.Equal(countBefore, await db.Patients.CountAsync());
|
||||
@@ -56,14 +60,17 @@ public sealed class UpdatePatientTests(PatientApiFixture fixture) : IClassFixtur
|
||||
{
|
||||
using var createdResponse = await fixture.Client.PostAsJsonAsync("/api/patients", new
|
||||
{
|
||||
name = "Steffen Example", dateOfBirth = "1980-01-01", contactInfo = "old@example.test"
|
||||
name = "Steffen Example",
|
||||
dateOfBirth = "1980-01-01",
|
||||
contactInfo = "old@example.test"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.Created, createdResponse.StatusCode);
|
||||
var created = (await createdResponse.Content.ReadFromJsonAsync<Profile>())!;
|
||||
var path = $"/api/patients/{created.PatientId}";
|
||||
using var response = await fixture.Client.PutAsJsonAsync(path, new
|
||||
{
|
||||
name, contactInfo = "new@example.test"
|
||||
name,
|
||||
contactInfo = "new@example.test"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
|
||||
Assert.Equal(created, await fixture.Client.GetFromJsonAsync<Profile>(path));
|
||||
|
||||
Reference in new issue
Block a user