private DataTypesFactory() { this.dataTypes = new Dictionary <string, DataType>(); this.dataTypes.Add(TypesKeyConstants.IntTypeKey, IntType.GetIntType()); this.dataTypes.Add(TypesKeyConstants.StringTypeKey, StringType.GetStringType()); this.dataTypes.Add(TypesKeyConstants.DoubleTypeKey, DoubleType.GetDoubleType()); }
public void TestGetStringTypeDataType() { DataTypesFactory dataTypesFactory = GetDataTypesFactory(); StringType stringType = StringType.GetStringType(); Assert.AreEqual(stringType, dataTypesFactory.GetDataType(TypesKeyConstants.StringTypeKey)); }
public void SetDataFormatManager(string dataFormatManagerVersion) { IntType.GetIntType().SetDataFormatManager(DataFormatFactory.GetDataFormatFactory().GetSaveDataFormatManager(SaveDataFormatVersions.NothingToDoDataFormatManagerVersion)); DoubleType.GetDoubleType().SetDataFormatManager(DataFormatFactory.GetDataFormatFactory().GetSaveDataFormatManager(SaveDataFormatVersions.NothingToDoDataFormatManagerVersion)); StringType.GetStringType().SetDataFormatManager(DataFormatFactory.GetDataFormatFactory().GetSaveDataFormatManager(dataFormatManagerVersion)); }