Ejemplo n.º 1
0
 public XmlTransactionParser(
     ILogger <XmlTransactionParser> logger,
     IXmlFileReader xmlFileReader)
 {
     this.logger        = logger;
     this.xmlFileReader = xmlFileReader;
 }
Ejemplo n.º 2
0
 public XmlTransactionReadHandler(
     IXmlFileReader xmlFileReader,
     ITransactionValidator transactionValidator,
     IMapper mapper)
 {
     _xmlFileReader        = xmlFileReader;
     _transactionValidator = transactionValidator;
     _mapper = mapper;
 }
Ejemplo n.º 3
0
        public BrokenXmlFileReader(IXmlFileReader reader, ILogger logger)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            this.reader = reader;
            this.logger = logger;
        }
Ejemplo n.º 4
0
        public static string ReadAndDecrypt(this IXmlFileReader fileReader)
        {
            StringBuilder stringBuilder =
                new StringBuilder(fileReader.Read());

            char[] array = stringBuilder.ToString().ToCharArray();
            Array.Reverse(array);

            return(new string(array));
        }
        public XmlFileContentDataService(IXmlFileReader reader, IXmlFileWriter writer)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            this.reader = reader;
            this.writer = writer;
        }
 public ZooBankCloneXmlCommand(IDocumentFactory documentFactory, IZoobankXmlCloner cloner, IXmlFileReader fileReader)
 {
     this.documentFactory = documentFactory ?? throw new ArgumentNullException(nameof(documentFactory));
     this.cloner          = cloner ?? throw new ArgumentNullException(nameof(cloner));
     this.fileReader      = fileReader ?? throw new ArgumentNullException(nameof(fileReader));
 }