/// <summary> /// Get stream from embedded resource in the current code assembly /// </summary> /// <param name="resourceName"></param> /// <returns></returns> public static Stream GetStreamFromAssembly(this string resourceName) => EmbeddedResourceResolver.Create(AssemblyType.Library).GetResourceStream(resourceName);
public StylesheetTransformerTests() { _unitTestAssemblyResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller); }
/// <summary> /// <see cref="SchematronValidator"/> instance constructor /// </summary> /// <param name="schematronStream">Schematron content stream</param> public SchematronValidator(Stream schematronStream) { _schematronStream = schematronStream ?? throw new ArgumentNullException(nameof(schematronStream)); _resolver = EmbeddedResourceResolver.Create(AssemblyType.Library); _transformer = new StylesheetTransformer(_resolver); }
public SchemaValidatorTests() { _localResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller); }
public SchematronValidatorTests() { _fileResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller); }