internal static GTS CreateGTS(UseContext context) { Tracer.Trace("Create GTS", context); return(new GTS(new IVL <TS>(CreateTS(context), CreateTS(context)))); }
internal static TS CreateTS(UseContext context) { Tracer.Trace("Creating TS", context); return(DateTime.Parse("2011-02-09 12:55:00")); }
internal static TEL CreateTEL(UseContext context) { Tracer.Trace("Creating TEL", context); if (null != context && null != context.PropertyAttribute && !string.IsNullOrEmpty(context.PropertyAttribute.ImposeFlavorId)) { TEL result = new TEL(); if (null == result.Use) { result.Use = new SET <CS <MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse> >(); } switch (context.PropertyAttribute.ImposeFlavorId) { case "TEL.URI": #region URI result.Use.Add(MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse.Direct); result.Value = "http://www.marc-hi.ca"; return(result); #endregion case "TEL.PHONE": #region Phone result.Use.Add(MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse.WorkPlace); result.Value = "+1-905-575-1212x3112"; return(result); #endregion case "TEL.PHONEMAIL": #region Email result.Use.Add(MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse.WorkPlace); result.Value = "mailto:[email protected]"; return(result); #endregion default: #region Default - URI result.Use.Add(MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse.Direct); result.Value = "http://www.marc-hi.ca"; return(result); #endregion } } else { #region Unknown - Assume URI TEL result = new TEL(); if (null == result.Use) { result.Use = new SET <CS <MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse> >(); } result.Use.Add(MARC.Everest.DataTypes.Interfaces.TelecommunicationAddressUse.Direct); result.Value = "http://www.marc-hi.ca"; return(result); #endregion } }
internal static SC CreateSC(UseContext context) { Tracer.Trace("Creating SC", context); return(new SC("Hello", "en-US", new CD <String>("120394"))); }
internal static ST CreateST(UseContext context) { Tracer.Trace("Creating ST", context); return("String"); }
internal static REAL CreateREAL(UseContext context) { Tracer.Trace("Creating REAL", context); return(Math.PI); }
internal static BL CreateBL(UseContext context) { Tracer.Trace("Creating BL", context); return(true); }
internal static PQ CreatePQ(UseContext context) { Tracer.Trace("Creating PQ", context); return(new PQ((decimal)1.0, "d")); }