Beispiel #1
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Factory Methods
        public static DomReadOnlyErrors Create(IEnumerable <Error> errors)
        {
            Contract.Requires(errors != null);

            var domReadOnlyErrors = new DomReadOnlyErrors(errors);

            return(domReadOnlyErrors);
        }
Beispiel #2
0
        private static void ParseErrors(DomDocument domDocument, Document apiDocument)
        {
            Contract.Requires(domDocument != null);
            Contract.Requires(apiDocument != null);

            var errors = apiDocument.GetErrors();

            domDocument.CreateAndAddNode(() => DomReadOnlyErrors.Create(errors));
        }