public async Task Get_Album_Of_Specific_User_Should_Match_Album_Count()
        {
            var albumFilterSpecification = new AlbumFilterSpecification(1);
            var numberOfAlbums           = await _albumRepository.CountAsync(albumFilterSpecification);

            Assert.Equal(10, numberOfAlbums);
        }
示例#2
0
        public async Task <int> GetAlbumCountAsyncByUserId(int userId)
        {
            var albumFilterSpecification = new AlbumFilterSpecification(userId);

            return(await _albumAsyncRepository.CountAsync(albumFilterSpecification));
        }