Exemplo n.º 1
0
        public ImporterTests()
        {
            _rawParser         = Substitute.For <IRawParser>();
            _libraryImporter   = Substitute.For <ILibraryImporter>();
            _componentImporter = Substitute.For <IComponentImporter>();
            _recipeImporter    = Substitute.For <IRecipeImporter>();
            _unitImporter      = Substitute.For <IUnitImporter>();

            _sut = new Importer(_rawParser, _libraryImporter, _componentImporter,
                                _recipeImporter, _unitImporter);
        }
Exemplo n.º 2
0
 public Importer(IRawParser rawParser,
                 ILibraryImporter libraryImporter,
                 IComponentImporter componentImporter,
                 IRecipeImporter recipeImporter,
                 IUnitImporter unitImporter)
 {
     _rawParser         = rawParser;
     _libraryImporter   = libraryImporter;
     _componentImporter = componentImporter;
     _recipeImporter    = recipeImporter;
     _unitImporter      = unitImporter;
 }