예제 #1
0
        public void Should_be_of_correct_type()
        {
            // when
            var view = new PartialCollectionView();

            // then
            view.Type.Should().Be(Vocab.Hydra.PartialCollectionView);
        }
예제 #2
0
        public void Should_be_created_with_empty_links()
        {
            // when
            var view = new PartialCollectionView();

            // then
            view.Id.Should().BeNull();
            view.First.Should().BeNull();
            view.Last.Should().BeNull();
            view.Next.Should().BeNull();
            view.Previous.Should().BeNull();
        }