Update to Async Attachement, Answer and Update Multiple Answers submission - backlog #288

This commit is contained in:
Reginald Cherenfant Jasmin
2023-08-27 11:55:58 -04:00
parent 5a641ff3aa
commit 96ccb96bf1
50 changed files with 166 additions and 1087 deletions

View File

@ -93,7 +93,7 @@ namespace DamageAssesment.Api.Locations.Test
var mapper = new Mapper(configuration);
var LocationsProvider = new LocationsProvider(dbContext, null, mapper);
//Testmethode
Db.Location newLocation = new Db.Location() { Id = "Loc9", RegionId = "1", Name = "Test 1", MaintenanceCenter = "1", SchoolType = "US" };
Models.Location newLocation = new Models.Location() { Id = "Loc9", RegionId = "1", Name = "Test 1", MaintenanceCenter = "1", SchoolType = "US" };
var Location = await LocationsProvider.PostLocationAsync(newLocation);
Assert.True(Location.IsSuccess);
@ -113,7 +113,7 @@ namespace DamageAssesment.Api.Locations.Test
var mapper = new Mapper(configuration);
var LocationsProvider = new LocationsProvider(dbContext, null, mapper);
//Testmethode
Db.Location updateLocation = new Db.Location() { Id = "Loc1", RegionId = "1", Name = "Tampa", MaintenanceCenter = "1", SchoolType = "NA" };
Models.Location updateLocation = new Models.Location() { Id = "Loc1", RegionId = "1", Name = "Tampa", MaintenanceCenter = "1", SchoolType = "NA" };
var Location = await LocationsProvider.UpdateLocationAsync(updateLocation);
var modified = dbContext.Locations.FirstOrDefault(a => a.Id == updateLocation.Id);
Assert.True(Location.IsSuccess);