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); }
public IHateoasContext ApplyConfiguration <T>(IHateoasResourceConfiguration <T> configuration) where T : class { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } configuration.Configure(GetOrInsert <T>()); return(this); }
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); }