Example #1
0
        public void GetApplicableLinks_WithTypeConfiguredFromAssembly_ReturnNotEmptyList <T>(
            IHateoasResourceConfiguration <T> testeeConfiguration, T testee)
            where T : Testee
        {
            // act
            var hateoasContext = _sut.ConfigureFromAssembly(testeeConfiguration.GetType().Assembly);

            // assert
            Assert.Same(_sut, hateoasContext);
            ActNotEmptyHateoasLinks(testee);
        }
Example #2
0
 public void GetApplicableLinks_WithTypeConfiguredFromAssembly_ReturnLinkBuilders()
 {
     _sut.ConfigureFromAssembly(new HateoasSampleBuilder().GetType().Assembly)
     .GetApplicableLinkBuilders(new HateoasSample())
     .Should().NotBeNull().And.NotBeEmpty();
 }