RdvQuery from PostIt
This commit is contained in:
parent
6826d345a9
commit
fbc72f0c85
19 changed files with 912 additions and 8 deletions
|
|
@ -188,6 +188,30 @@ public sealed class ApiWebServerFixture : WebHostFixture
|
|||
db.SaveChanges();
|
||||
}
|
||||
|
||||
public void ResetAndSeedRdvQueryGraph()
|
||||
{
|
||||
ResetAndSeedActivityGraph();
|
||||
|
||||
using var scope = Services.CreateScope();
|
||||
var db = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
|
||||
|
||||
var location = db.Locations.Single(l => l.Address == "1 rue du Test");
|
||||
|
||||
db.RdvQueries.Add(new RdvQuery
|
||||
{
|
||||
ActivityCode = "dev",
|
||||
ClientId = "alice",
|
||||
PerformerId = "alice",
|
||||
Consent = true,
|
||||
EventDate = DateTime.UtcNow.AddDays(1),
|
||||
Location = location,
|
||||
Reason = "Initial rendez-vous",
|
||||
Status = Yavsc.QueryStatus.Inserted,
|
||||
});
|
||||
|
||||
db.SaveChanges();
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue