Esempio n. 1
0
 public virtual void TestGetAttributeNameValuePairsPhonemailAllValidSchemes()
 {
     Ca.Infoway.Messagebuilder.Marshalling.HL7.Formatter.FormatContextImpl context = CreateContext("TEL.PHONE");
     FormatterAssert.AssertValidUrlScheme(new TelPhonemailPropertyFormatterTest.TestableTelPhonemailPropertyFormatter(), CeRxDomainTestValues
                                          .FAX, context, "fax:");
     FormatterAssert.AssertValidUrlScheme(new TelPhonemailPropertyFormatterTest.TestableTelPhonemailPropertyFormatter(), CeRxDomainTestValues
                                          .TELEPHONE, context, "tel:");
     context = CreateContext("TEL.EMAIL");
     FormatterAssert.AssertValidUrlScheme(new TelPhonemailPropertyFormatterTest.TestableTelPhonemailPropertyFormatter(), CeRxDomainTestValues
                                          .MAILTO, context, "mailto:");
 }
Esempio n. 2
0
 public virtual void TestGetAttributeNameValuePairsTelAllValidUris()
 {
     Ca.Infoway.Messagebuilder.Marshalling.HL7.Formatter.FormatContextImpl context = CreateContext();
     FormatterAssert.AssertValidUrlScheme(new TestableTelUriPropertyFormatter(), CeRxDomainTestValues.FILE, context, "file://"
                                          );
     FormatterAssert.AssertValidUrlScheme(new TestableTelUriPropertyFormatter(), CeRxDomainTestValues.FTP, context, "ftp://");
     FormatterAssert.AssertValidUrlScheme(new TestableTelUriPropertyFormatter(), CeRxDomainTestValues.HTTP, context, "http://"
                                          );
     FormatterAssert.AssertValidUrlScheme(new TestableTelUriPropertyFormatter(), CeRxDomainTestValues.HTTPS, context, "https://"
                                          );
     FormatterAssert.AssertValidUrlScheme(new TestableTelUriPropertyFormatter(), CeRxDomainTestValues.MAILTO, context, "mailto:"
                                          );
     FormatterAssert.AssertValidUrlScheme(new TestableTelUriPropertyFormatter(), CeRxDomainTestValues.NFS, context, "nfs://");
 }