public RuntimeContext(IStorage storage, INetwork network, Git.ITrace trace, Git.IUtilities utilities, Git.IWhere where)
            : this()
        {
            if (storage is null)
            {
                throw new ArgumentNullException(nameof(storage));
            }
            if (network is null)
            {
                throw new ArgumentNullException(nameof(network));
            }
            if (trace is null)
            {
                throw new ArgumentNullException(nameof(trace));
            }
            if (utilities is null)
            {
                throw new ArgumentNullException(nameof(utilities));
            }
            if (where is null)
            {
                throw new ArgumentNullException(nameof(where));
            }

            _network   = network;
            _storage   = storage;
            _trace     = trace;
            _utilities = utilities;
            _where     = where;
        }
Beispiel #2
0
        public RuntimeContext(
            IFileSystem fileSystem,
            INetwork network,
            Git.ITrace trace,
            Git.IWhere where)
            : this()
        {
            if (fileSystem is null)
            {
                throw new ArgumentNullException(nameof(fileSystem));
            }
            if (network is null)
            {
                throw new ArgumentNullException(nameof(network));
            }
            if (trace is null)
            {
                throw new ArgumentNullException(nameof(trace));
            }
            if (where is null)
            {
                throw new ArgumentNullException(nameof(where));
            }

            _fileSystem = fileSystem;
            _network    = network;
            _trace      = trace;
            _where      = where;
        }
Beispiel #3
0
        public UnitTestTrace(Git.ITrace trace, IUnitTestTrace other)
        {
            if (trace is null)
            {
                throw new ArgumentNullException(nameof(trace));
            }
            if (other is null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            _other = other;
            _trace = trace;
        }
Beispiel #4
0
        public RuntimeContext(INetwork network, ISettings settings, IStorage storage, Git.ITrace trace, Git.IUtilities utilities, Git.IWhere where)
            : this()
        {
            if (network is null)
            {
                throw new ArgumentNullException(nameof(network));
            }
            if (settings is null)
            {
                throw new ArgumentNullException(nameof(settings));
            }
            if (storage is null)
            {
                throw new ArgumentNullException(nameof(storage));
            }
            if (trace is null)
            {
                throw new ArgumentNullException(nameof(trace));
            }
            if (utilities is null)
            {
                throw new ArgumentNullException(nameof(utilities));
            }
            if (where is null)
            {
                throw new ArgumentNullException(nameof(where));
            }

            SetService(network);
            SetService(settings);
            SetService(storage);
            SetService(trace);
            SetService(utilities);
            SetService(where);
        }