private const string SystemMapFilePath = "kogge-stone.txt";// public SystemTestForKoggeStone() { _outputProvider = new SystemCalculator(new LogicalOperationCalculator()); _inputDataTranslator = new InputDataTranslator(); var mapFileContentProvider = Substitute.For <IProvideMapFileContent>(); mapFileContentProvider.GetMapFileContent(SystemMapFilePath).Returns(EmbeddedData.AsString(SystemMapFilePath)); var systemBuilder = new SystemBuilder(new MapFileParser(), mapFileContentProvider, new BuildSystemModulesMap()); this._system = systemBuilder.Build(SystemMapFilePath); }
public PrefixAdderSimulator(string systemMapFilePath) { _outputProvider = new SystemCalculator(new LogicalOperationCalculator()); _inputDataTranslator = new InputDataTranslator(); var systemBuilder = new SystemBuilder( new MapFileParser(), new ProvideMapFileContent(), new BuildSystemModulesMap() ); _system = systemBuilder.Build(systemMapFilePath); }
public InputDataTranslatorTests() { _inputDataTranslator = new InputDataTranslator(); }