/// <summary> /// Initializes a new instance of the <see cref="DefaultMetadataModuleResolver"/> class. /// </summary> /// <param name="conventions">The conventions that the resolver should use to determine which metadata module to return.</param> /// <param name="metadataModules">The metadata modules to use resolve against.</param> public DefaultMetadataModuleResolver(DefaultMetadataModuleConventions conventions, IEnumerable<IMetadataModule> metadataModules) { if (conventions == null) { throw new InvalidOperationException("Cannot create an instance of DefaultMetadataModuleResolver with conventions parameter having null value."); } if (metadataModules == null) { throw new InvalidOperationException("Cannot create an instance of DefaultMetadataModuleResolver with metadataModules parameter having null value."); } this.conventions = conventions; this.metadataModules = metadataModules; }
public DefaultMetadataModuleConventionsFixture() { this.conventions = new DefaultMetadataModuleConventions(); }