forked from MDCPS/DamageAssessment_Backend
Update to Async Attachement, Answer and Update Multiple Answers submission - backlog #288
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user