public async Task WhenIMSUserGetsASpecificRelationshipByRelationshipIdThatDoesnTExistFromTheERCollection() { restClientUser = "******"; var erCollectionIdList = scenarioContext.CreatedERCollections().ToList(); for (int i = 0; i < erCollectionIdList.Count; i++) { var headers = new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>(PlatformHeaders.ErCollectionId, erCollectionIdList[i]) }; var wrongRelationshipId = $"wrongTest-{Guid.NewGuid()}"; Log.Information($"Attempting to get specific Relationship by Relationship Id {wrongRelationshipId} from ER Collection {erCollectionIdList[i]}"); var getRelationshipByIdResponseMsg = await ERService.GetRelationshipById(wrongRelationshipId, headers); scenarioContext.AddHttpResponse(getRelationshipByIdResponseMsg); } }
public async Task WhenTheIMSUserGetsAllEntitiesOfSpecificEntityTypeWhichDoesnotContainEntitiesInAnERCollection() { restClientUser = "******"; var erCollectionIdList = scenarioContext.CreatedERCollections().ToList(); for (int i = 0; i < erCollectionIdList.Count; i++) { var headers = new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>(PlatformHeaders.ErCollectionId, erCollectionIdList[i]) }; Log.Information($"Attempting to get all entities of specific entity type from ER Collection {erCollectionIdList[i]}"); var getAllEntitiesResponseMsg = await ERService.GetAllEntitiesByEntityType(BrickEntityTypes.FloorBrickEntityType, headers : headers); scenarioContext.AddHttpResponse(getAllEntitiesResponseMsg); } }