public async Task GetJourneys_AsAdmin_ShouldReturnForbidden_WhenNoAccessToPlant() => await JourneysControllerTestsHelper.GetJourneysAsync( UserType.LibraryAdmin, TestFactory.PlantWithoutAccess, HttpStatusCode.Forbidden);
public async Task GetJourneys_AsAnonymous_ShouldReturnUnauthorized() => await JourneysControllerTestsHelper.GetJourneysAsync( UserType.Anonymous, TestFactory.UnknownPlant, HttpStatusCode.Unauthorized);
public async Task GetJourneys_AsAdmin_ShouldReturnBadRequest_WhenUnknownPlant() => await JourneysControllerTestsHelper.GetJourneysAsync( UserType.LibraryAdmin, TestFactory.UnknownPlant, HttpStatusCode.BadRequest, "is not a valid plant");
public async Task GetJourneys_AsPreserver_ShouldReturnForbidden_WhenPermissionMissing() => await JourneysControllerTestsHelper.GetJourneysAsync( UserType.Preserver, TestFactory.PlantWithAccess, HttpStatusCode.Forbidden);