Пример #1
0
        public async Task PlayListController_GetPlayLists_Ok()
        {
            var db = _builder
                     .ConfigureInMemory()
                     .AddTenPlayLists()
                     .Build();

            var repository = new Repository <Models.PlayList>(db);

            var controller = new PlayListController(repository);

            var response = (await controller.GetPlayLists())
                           .Result as OkObjectResult;

            var values = response.Value as List <Models.PlayList>;

            values.Count.Should().Be(10);
        }