Example #1
0
 /// <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);
Example #2
0
 public StylesheetTransformerTests()
 {
     _unitTestAssemblyResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller);
 }
Example #3
0
 /// <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);
 }
Example #5
0
 public SchematronValidatorTests()
 {
     _fileResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller);
 }