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
@@ -17,7 +17,8 @@ public sealed class RecordObservationTests(ObservationApiFixture fixture) : ICla
|
||||
{
|
||||
using var response = await fixture.Client.PostAsJsonAsync("/api/patients", new
|
||||
{
|
||||
name = "Steffen Example", dateOfBirth = "1980-01-01"
|
||||
name = "Steffen Example",
|
||||
dateOfBirth = "1980-01-01"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.Created, response.StatusCode);
|
||||
return (await response.Content.ReadFromJsonAsync<Profile>())!.PatientId;
|
||||
@@ -29,8 +30,12 @@ public sealed class RecordObservationTests(ObservationApiFixture fixture) : ICla
|
||||
var patientId = await CreatePatientAsync();
|
||||
using var response = await fixture.Client.PostAsJsonAsync($"/api/patients/{patientId}/observations", new
|
||||
{
|
||||
measuredAt = "2026-09-12T08:00:00", systolic = 128, diastolic = 82, pulse = 68,
|
||||
context = "Resting", note = "Before breakfast"
|
||||
measuredAt = "2026-09-12T08:00:00",
|
||||
systolic = 128,
|
||||
diastolic = 82,
|
||||
pulse = 68,
|
||||
context = "Resting",
|
||||
note = "Before breakfast"
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.Created, response.StatusCode);
|
||||
var saved = await response.Content.ReadFromJsonAsync<Observation>();
|
||||
@@ -79,7 +84,10 @@ public sealed class RecordObservationTests(ObservationApiFixture fixture) : ICla
|
||||
var before = await db.Observations.CountAsync();
|
||||
using var response = await fixture.Client.PostAsJsonAsync($"/api/patients/{patientId}/observations", new
|
||||
{
|
||||
measuredAt = "2026-09-12T08:00:00", systolic, diastolic, pulse
|
||||
measuredAt = "2026-09-12T08:00:00",
|
||||
systolic,
|
||||
diastolic,
|
||||
pulse
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
|
||||
Assert.Equal(before, await db.Observations.CountAsync());
|
||||
@@ -113,7 +121,10 @@ public sealed class RecordObservationTests(ObservationApiFixture fixture) : ICla
|
||||
var before = await db.Observations.CountAsync();
|
||||
using var response = await fixture.Client.PostAsJsonAsync($"/api/patients/{Guid.NewGuid()}/observations", new
|
||||
{
|
||||
measuredAt = "2026-09-12T08:00:00", systolic = 128, diastolic = 82, pulse = 68
|
||||
measuredAt = "2026-09-12T08:00:00",
|
||||
systolic = 128,
|
||||
diastolic = 82,
|
||||
pulse = 68
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
|
||||
Assert.Equal(before, await db.Observations.CountAsync());
|
||||
@@ -137,7 +148,10 @@ public sealed class RecordObservationTests(ObservationApiFixture fixture) : ICla
|
||||
{
|
||||
using var response = await fixture.Client.PostAsJsonAsync($"/api/patients/{patientId}/observations", new
|
||||
{
|
||||
measuredAt = "2026-09-12T08:00:00", systolic = 128, diastolic = 82, pulse = 68
|
||||
measuredAt = "2026-09-12T08:00:00",
|
||||
systolic = 128,
|
||||
diastolic = 82,
|
||||
pulse = 68
|
||||
});
|
||||
Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
|
||||
Assert.Equal(before, await db.Observations.CountAsync());
|
||||
|
||||
Reference in new issue
Block a user