public async Task TestGetAllByFilter(string filter, int expectedCount) { //arrange var input = new GetOptionListItemDto() { Filter = filter }; //act var results = await _optionListItemService.GetAllOptionListItems(input); //assert results.ShouldNotBeNull(); results.Items.Count.ShouldBe(expectedCount); }
public async Task TestGetAllByListKey(string listKey, int expectedCount) { //arrange var input = new GetOptionListItemDto() { Key = listKey }; //act var results = await _optionListItemService.GetListItemsByListKey(input); //assert results.ShouldNotBeNull(); results.Items.ShouldNotBeNull(); results.Items.Count.ShouldBe(expectedCount); }