public void SimpleTypeLookup() { FudgeFieldType type = null; type = new FudgeTypeDictionary().GetByCSharpType(typeof(bool)); Assert.NotNull(type); Assert.Equal(PrimitiveFieldTypes.BooleanType.TypeId, type.TypeId); type = new FudgeTypeDictionary().GetByCSharpType(typeof(Boolean)); Assert.NotNull(type); Assert.Equal(PrimitiveFieldTypes.BooleanType.TypeId, type.TypeId); }
private static void AddSecondaryTypes(FudgeTypeDictionary typeDictionary) { typeDictionary.AddType(new SecondaryFieldType <Currency, string>(StringFieldType.Instance, Currency.Create, c => c.ISOCode)); }