public async Task <IEnumerable <PublisherDto> > GetAllAsync(string culture = Culture.En) { var publishers = await _publisherDecorator.GetAllAsync(); var publishersDto = publishers.Select(publisher => CreatePublisherDto(publisher, culture)); return(publishersDto); }
public void GetAllAsync_ReturnsCollection_Always() { A.CallTo(() => _publisherDecorator.GetAllAsync()) .Returns(new List <Publisher>()); var publishersDto = _publisherService.GetAllAsync(); publishersDto.Should().NotBeNull(); }