Ejemplo n.º 1
0
 internal static GTS CreateGTS(UseContext context)
 {
     Tracer.Trace("Create GTS", context);
     return(new GTS(new IVL <TS>(CreateTS(context), CreateTS(context))));
 }
Ejemplo n.º 2
0
 internal static TS CreateTS(UseContext context)
 {
     Tracer.Trace("Creating TS", context);
     return(DateTime.Parse("2011-02-09 12:55:00"));
 }
Ejemplo n.º 3
0
        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
            }
        }
Ejemplo n.º 4
0
 internal static SC CreateSC(UseContext context)
 {
     Tracer.Trace("Creating SC", context);
     return(new SC("Hello", "en-US", new CD <String>("120394")));
 }
Ejemplo n.º 5
0
 internal static ST CreateST(UseContext context)
 {
     Tracer.Trace("Creating ST", context);
     return("String");
 }
Ejemplo n.º 6
0
 internal static REAL CreateREAL(UseContext context)
 {
     Tracer.Trace("Creating REAL", context);
     return(Math.PI);
 }
Ejemplo n.º 7
0
 internal static BL CreateBL(UseContext context)
 {
     Tracer.Trace("Creating BL", context);
     return(true);
 }
Ejemplo n.º 8
0
 internal static PQ CreatePQ(UseContext context)
 {
     Tracer.Trace("Creating PQ", context);
     return(new PQ((decimal)1.0, "d"));
 }