public async Task ThenFilterIsAppliedCorrectlyForEmployerName() { var fixture = new SelectEmployerViewModelMapperFixture(); fixture.AddListOfAccountProviderLegalEntities() .WithRequest(new SelectEmployerRequest { ProviderId = 123, SearchTerm = "atestaccountlegal" }); var result = await fixture.Act(); fixture.Assert_FilterIsAppliedCorrectlyForEmployerName(result); }
public async Task ThenSortIsAppliedCorrectlyForEmployerAccountName(bool reverseSort) { var fixture = new SelectEmployerViewModelMapperFixture(); fixture.AddListOfAccountProviderLegalEntities() .WithRequest(new SelectEmployerRequest { ProviderId = 123, SortField = SelectEmployerFilterModel.EmployerAccountNameConst, ReverseSort = reverseSort }); var result = await fixture.Act(); fixture.Assert_SortIsAppliedCorrectlyForEmployerAccountName(result, reverseSort); }