Beispiel #1
0
        public CalculatorService(IFile file, IFileParser parser, ICruncherAutomator automator)
        {
            if (file == null)
                throw new ArgumentNullException(nameof(file));
            if (parser == null)
                throw new ArgumentNullException(nameof(parser));
            if (automator == null)
                throw new ArgumentNullException(nameof(automator));

            _file = file;
            _parser = parser;
            _automator = automator;
        }
Beispiel #2
0
        public CalculatorService(IFile file, IFileParser parser, ICruncherAutomator automator)
        {
            if (file == null)
            {
                throw new ArgumentNullException(nameof(file));
            }
            if (parser == null)
            {
                throw new ArgumentNullException(nameof(parser));
            }
            if (automator == null)
            {
                throw new ArgumentNullException(nameof(automator));
            }

            _file      = file;
            _parser    = parser;
            _automator = automator;
        }