Ejemplo n.º 1
0
        public EasyBankContext(
            ICsvAgent statementImporter,
            IYnabAgent ynabExporter,
            IXmlAgent xmlAgent,
            IFileAccess fileAccess,
            IPathProvider pathProvider)
        {
            if (statementImporter == null)
            {
                throw new ArgumentNullException("statementImporter");
            }
            if (ynabExporter == null)
            {
                throw new ArgumentNullException("ynabExporter");
            }
            if (xmlAgent == null)
            {
                throw new ArgumentNullException("xmlAgent");
            }
            if (fileAccess == null)
            {
                throw new ArgumentNullException("fileAccess");
            }
            if (pathProvider == null)
            {
                throw new ArgumentNullException("pathProvider");
            }

            this.statementImporter = statementImporter;
            this.ynabExporter      = ynabExporter;
            this.xmlAgent          = xmlAgent;
            this.fileAccess        = fileAccess;
            this.pathProvider      = pathProvider;
        }
Ejemplo n.º 2
0
        public EasyBankContext(
      ICsvAgent statementImporter,
      IYnabAgent ynabExporter,
      IXmlAgent xmlAgent, 
      IFileAccess fileAccess, 
      IPathProvider pathProvider)
        {
            if (statementImporter == null) throw new ArgumentNullException("statementImporter");
              if (ynabExporter == null) throw new ArgumentNullException("ynabExporter");
              if (xmlAgent == null) throw new ArgumentNullException("xmlAgent");
              if (fileAccess == null) throw new ArgumentNullException("fileAccess");
              if (pathProvider == null) throw new ArgumentNullException("pathProvider");

              this.statementImporter = statementImporter;
              this.ynabExporter = ynabExporter;
              this.xmlAgent = xmlAgent;
              this.fileAccess = fileAccess;
              this.pathProvider = pathProvider;
        }