Exemplo n.º 1
0
        public override bool Equals(OperationArgumentsBase args)
        {
            ImportStatistaOperationArguments statistaArgs = (ImportStatistaOperationArguments)args;

            return(HarvesterDatabase == statistaArgs.HarvesterDatabase &&
                   DestinationDatabase == statistaArgs.DestinationDatabase &&
                   SourceDirectory == statistaArgs.SourceDirectory);
        }
        public ImportStatistaOperation(ImportStatistaOperationArguments arguments, RepositoryArgumentsBase HarvesterDatabase, RepositoryArgumentsBase DestinationDatabase, RepositoryArgumentsBase SourceDirectory)
        {
            Contract.Requires(arguments != null);
            Contract.Requires(SourceDirectory != null);
            Contract.Requires(HarvesterDatabase != null);
            Contract.Requires(DestinationDatabase != null);

            _arguments      = arguments;
            _directoryArgs  = SourceDirectory;
            _harvesterArgs  = HarvesterDatabase;
            _statisticsArgs = DestinationDatabase;
        }