public async Task WhenWeAddTheEmployerVendorForThisLegalEntity() { var url = $"/legalentities/{_hashedLegalEntityId}/employervendorid"; var data = new { EmployerVendorId = _newVendorId }; await EmployerIncentiveApi.Put(url, data); }
public async Task WhenAddedLegalEntityEventIsTriggered() { _response = await EmployerIncentiveApi.Put( $"/accounts/{_testAccountTable.Id}/legalEntities", new AddLegalEntityRequest { AccountLegalEntityId = _testAccountTable.AccountLegalEntityId, LegalEntityId = _testAccountTable.LegalEntityId, OrganisationName = _testAccountTable.LegalEntityName }); _response.StatusCode.Should().Be(_expectedResult); }
public async Task WhenTheyHaveChangedSelectedApprenticeshipsForTheApplication() { _updateApplicationRequest = new UpdateIncentiveApplicationRequest() { IncentiveApplicationId = _createApplicationRequest.IncentiveApplicationId, Apprenticeships = Fixture.CreateMany <IncentiveApplicationApprenticeshipDto>(4), AccountId = _createApplicationRequest.AccountId, }; _updateApplicationRequest.Apprenticeships.AddItem(_createApplicationRequest.Apprenticeships.First()); var url = $"applications/{_updateApplicationRequest.IncentiveApplicationId}"; _response = await EmployerIncentiveApi.Put(url, _updateApplicationRequest); }
public async Task WhenArefreshLegalEntitiesJobisrequested() { var data = new Dictionary <string, object> { { "PageNumber", 1 }, { "PageSize", 200 } }; _response = await EmployerIncentiveApi.Put( $"/jobs", new JobRequest { Type = JobType.RefreshLegalEntities, Data = data }); _response.StatusCode.Should().Be(_expectedResult); }