private static StandardBusinessDocument GetDpiDigitalMessageSbd(string senderId, string receiverId) { var dpiDigitalMessage = new DpiDigitalBusinessMessage { Language = "NO", Title = "tittel", SecurityLevel = 3, PrimaryDocumentName = "test.pdf", DigitalPostInfo = new DigitalPostInfo { ReceiptOnOpening = false, EffectiveDateTime = DateTime.Now.AddDays(1), }, Notification = new Notification { EmailText = "ePost varsel", SmsText = "SMS varsel" } }; var sbd = new StandardBusinessDocument( new SbdAddressInfo(senderId, receiverId, "urn:no:difi:profile:digitalpost:info:ver1.0", "urn:no:difi:digitalpost:xsd:digital::digital"), dpiDigitalMessage); return(sbd); }
private DpiDigitalBusinessMessage GetMessage() { var dpiDigitalMessage = new DpiDigitalBusinessMessage { Language = "NO", Title = "tittel", SecurityLevel = 3, PrimaryDocumentName = "test.pdf", DigitalPostInfo = new DigitalPostInfo { EffectiveDateTime = DateTime.Now.AddDays(1), ReceiptOnOpening = false }, Notification = new Notification { EmailText = "ePost varsel", SmsText = "SMS varsel" } }; return(dpiDigitalMessage); }