/// <exception cref="System.IO.IOException"></exception> /// <exception cref="Platform.Xml.Sax.SAXException"></exception> private MessageValidatorResult ValidateWithActualService(string resourceName) { XmlDocument document = new DocumentFactory().CreateFromResource(new ClasspathResource(this.GetType(), resourceName)); MessageDefinitionService messageDefinitionService = new MessageDefinitionServiceFactory().Create(); return(new MessageValidatorImpl(messageDefinitionService).Validate(document, SpecificationVersion.R02_04_02)); }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="Platform.Xml.Sax.SAXException"></exception> private MessageValidatorResult ValidateWithMockService(string resourceName) { if (!resourceName.StartsWith("/")) { resourceName = "/" + resourceName; } XmlDocument document = new DocumentFactory().CreateFromResource(new ClasspathResource(this.GetType(), resourceName)); MessageDefinitionService messageDefinitionService = new MessageDefinitionServiceFactory().Create(); return(new MessageValidatorImpl(messageDefinitionService).Validate(document, SpecificationVersion.V02R02)); }