public void LogMapping(IDataMappingHolder _dataMappingHolder) { StringBuilder sb = new StringBuilder(); sb.AppendLine(Environment.NewLine); sb.AppendLine("***********************************************************************"); sb.AppendLine("MAPPING FOR ROMAN CONSTANTS :"); sb.AppendLine("-----------------------------------------------------------------------"); sb.AppendLine("KEY ROMAN DECIMAL"); sb.AppendLine("---- ------ --------"); foreach (var element in _dataMappingHolder.RomanConstantsTable) { sb.AppendLine(element.Key + "\t " + element.Value.RomanChar + "\t\t" + element.Value.DecimalValue); } sb.AppendLine("-----------------------------------------------------------------------"); sb.AppendLine("MAPPING FOR CALCULATIVE METALS :"); sb.AppendLine("-----------------------------------------------------------------------"); sb.AppendLine("METAL CREDITS"); sb.AppendLine("---- ------"); foreach (var element in _dataMappingHolder.DeclarativeCalculationTable) { sb.AppendLine(element.Key + "\t\t" + element.Value); } sb.AppendLine("-----------------------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkGray; Console.WriteLine(sb.ToString()); }
public ConcreteQueryFactory(IDataMappingHolder _dataMappingHolder) { this.dataMappingHolder = _dataMappingHolder; }
public string ProcessQuery(IDataMappingHolder _dataMappingHolder) { return(this.ProcessQuery(_dataMappingHolder.RomanConstantsTable, _dataMappingHolder.DeclarativeCalculationTable)); }