예제 #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);
예제 #2
0
 public StylesheetTransformerTests()
 {
     _unitTestAssemblyResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller);
 }
예제 #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);
 }
예제 #4
0
 public SchemaValidatorTests()
 {
     _localResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller);
 }
예제 #5
0
 public SchematronValidatorTests()
 {
     _fileResolver = EmbeddedResourceResolver.Create(AssemblyType.Caller);
 }