Example #1
0
        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);
        }
Example #2
0
        public void GetAllAsync_ReturnsCollection_Always()
        {
            A.CallTo(() => _publisherDecorator.GetAllAsync())
            .Returns(new List <Publisher>());

            var publishersDto = _publisherService.GetAllAsync();

            publishersDto.Should().NotBeNull();
        }