Esempio n. 1
0
        public async Task FindSeries_Always_ReturnsSeries()
        {
            // Arrange
            const string serieName = "Supernatural";

            IEnumerable <Series> expectedSeries = new List <Series>
            {
                new Series {
                    SeriesId = "78901", SeriesName = "Supernatural"
                },
                new Series {
                    SeriesId = "79426", SeriesName = "Supernatural Science"
                },
                new Series {
                    SeriesId = "154401", SeriesName = "5th Dimension - Secrets of the Supernatural"
                }
            };

            _metadataUpdater.FindSeries(serieName)
            .Returns(expectedSeries.ToTask());

            // Act
            IEnumerable <Series> series = await _service.FindSeries(serieName);

            // Assert
            Assert.Equal(expectedSeries, series);
        }
 public Task <IEnumerable <Series> > FindSeries(string name)
 {
     return(_metadataUpdater.FindSeries(name));
 }