Пример #1
0
        public void AreMovieCollectionsReturned()
        {
            var result       = _subject.GetCollections();
            var resultObject = result.Should().BeOfType <OkObjectResult>().Subject.Value;
            var list         = resultObject.Should().BeOfType <List <CollectionViewModel> >().Subject;

            list.Count.Should().Be(2);
            list[0].Name.Should().Be(_collections[0].Name);
            list[1].Name.Should().Be(_collections[1].Name);
            _movieServiceMock.Verify(x => x.GetMovieCollections(), Times.Once);
        }