public void GetApplicableLinks_WithApplyConfigurationForType_ReturnNotEmptyList <T>( IHateoasResourceConfiguration <T> config, T testee) where T : Testee { // act var hateoasContext = _sut.ApplyConfiguration(config); ActNotEmptyHateoasLinks(testee); // assert Assert.Same(_sut, hateoasContext); }
public void GetApplicableLinks_WithApplyConfigurationForType_ReturnLinkBuilders() { _sut.ApplyConfiguration(new HateoasSampleBuilder()) .GetApplicableLinkBuilders(new HateoasSample()) .Should().NotBeNull().And.NotBeEmpty(); }