Exemplo n.º 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;
        }
Exemplo n.º 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;
        }