public async Task <IEnumerable <string> > GetKudosFilteringTypes() { var statuses = new List <string> { BusinessLayerConstants.KudosFilteringTypeAllFilter }; var kudosTypeDto = await _kudosService.GetKudosTypesAsync(GetUserAndOrganization()); return(statuses.Concat(kudosTypeDto.Select(s => s.Name))); }
public async Task GetKudosTypes_Should_Return_IEnumerable_Of_KudosType_ViewModel() { var userAndOrganization = new UserAndOrganizationDto { OrganizationId = 1, UserId = "fd798623-166c-412d-a060-369d4c7b90eb" }; _kudosService.GetKudosTypesAsync(userAndOrganization).Returns(new List <KudosTypeDto> { new KudosTypeDto() }); var response = await _kudosController.GetKudosTypes(); Assert.IsInstanceOf <IEnumerable <KudosTypeViewModel> >(response); }