diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs
index 2da177d7..e0d68389 100755
--- a/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs
+++ b/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs
@@ -50,11 +50,9 @@ public IMessage GetMessage()
{
if (_message != null) return _message;
- var primaryDocument = new Document("document subject", "txt", GetDocumentBytes());
- var recipientByNameAndAddress = new RecipientByNameAndAddress("Ola Nordmann", "0460",
+ var primaryDocument = new Document("document subject", "txt", GetDocumentBytes());
+ var digitalRecipientWithFallbackPrint = new RecipientByNameAndAddress("Ola Nordmann", "0460",
"Oslo", "Collettsgate 68");
-
- var digitalRecipientWithFallbackPrint = new Recipient(recipientByNameAndAddress);
_message = new Message(digitalRecipientWithFallbackPrint, primaryDocument);
}
@@ -66,7 +64,7 @@ public IIdentification GetIdentification()
lock (_lock)
{
if (_identification != null) return _identification;
- _identification = new Identification(IdentificationChoiceType.PersonalidentificationNumber, "01013300001");
+ _identification = new Identification(new RecipientById(IdentificationType.PersonalIdentificationNumber, "01013300001"));
}
return _identification;
diff --git a/Digipost.Api.Client.Domain/DataTransferObjects/IdentificationDataTransferObject.cs b/Digipost.Api.Client.Domain/DataTransferObjects/IdentificationDataTransferObject.cs
index 123180e6..bc64e6c1 100755
--- a/Digipost.Api.Client.Domain/DataTransferObjects/IdentificationDataTransferObject.cs
+++ b/Digipost.Api.Client.Domain/DataTransferObjects/IdentificationDataTransferObject.cs
@@ -32,9 +32,9 @@ public IdentificationDataTransferObject(IdentificationChoiceType identificationC
///
/// Identify if recipient exists in Digipost by name and address.
///
- public IdentificationDataTransferObject(RecipientByNameAndAddress recipientByNameAndAddress)
+ public IdentificationDataTransferObject(RecipientByNameAndAddressDataTranferObject recipientByNameAndAddressDataTranferObject)
{
- IdentificationValue = recipientByNameAndAddress;
+ IdentificationValue = recipientByNameAndAddressDataTranferObject;
IdentificationType = IdentificationChoiceType.NameAndAddress;
}
@@ -44,7 +44,7 @@ private IdentificationDataTransferObject()
}
[XmlElement("digipost-address", typeof (string))]
- [XmlElement("name-and-address", typeof (RecipientByNameAndAddress))]
+ [XmlElement("name-and-address", typeof (RecipientByNameAndAddressDataTranferObject))]
[XmlElement("organisation-number", typeof (string))]
[XmlElement("personal-identification-number", typeof (string))]
[XmlChoiceIdentifier("IdentificationType")]
diff --git a/Digipost.Api.Client.Domain/DataTransferObjects/MessageDataTransferObject.cs b/Digipost.Api.Client.Domain/DataTransferObjects/MessageDataTransferObject.cs
index 37ad7a09..a601b9e6 100755
--- a/Digipost.Api.Client.Domain/DataTransferObjects/MessageDataTransferObject.cs
+++ b/Digipost.Api.Client.Domain/DataTransferObjects/MessageDataTransferObject.cs
@@ -18,15 +18,15 @@ private MessageDataTransferObject()
/**Must exist for serialization.**/
}
- public MessageDataTransferObject(RecipientDataTransferObject recipient, DocumentDataTransferObject primaryDocumentDataTransferObject)
+ public MessageDataTransferObject(RecipientDataTransferObject recipientDataTransferObject, DocumentDataTransferObject primaryDocumentDataTransferObject)
{
- Recipient = recipient;
+ RecipientDataTransferObject = recipientDataTransferObject;
PrimaryDocumentDataTransferObject = primaryDocumentDataTransferObject;
Attachments = new List();
}
- public MessageDataTransferObject(RecipientDataTransferObject recipient, DocumentDataTransferObject primaryDocumentDataTransferObject, string senderId):
- this(recipient, primaryDocumentDataTransferObject)
+ public MessageDataTransferObject(RecipientDataTransferObject recipientDataTransferObject, DocumentDataTransferObject primaryDocumentDataTransferObject, string senderId):
+ this(recipientDataTransferObject, primaryDocumentDataTransferObject)
{
SenderId = senderId;
}
@@ -35,7 +35,7 @@ public MessageDataTransferObject(RecipientDataTransferObject recipient, Document
public string SenderId { get; set; }
[XmlElement("recipient")]
- public RecipientDataTransferObject Recipient { get; set; }
+ public RecipientDataTransferObject RecipientDataTransferObject { get; set; }
[XmlElement("delivery-time")]
public DateTime? DeliveryTime { get; set; }
diff --git a/Digipost.Api.Client.Domain/DataTransferObjects/RecipientDataTransferObject.cs b/Digipost.Api.Client.Domain/DataTransferObjects/RecipientDataTransferObject.cs
index acc17244..67a4e81f 100755
--- a/Digipost.Api.Client.Domain/DataTransferObjects/RecipientDataTransferObject.cs
+++ b/Digipost.Api.Client.Domain/DataTransferObjects/RecipientDataTransferObject.cs
@@ -19,9 +19,9 @@ private RecipientDataTransferObject()
/**Must exist for serialization.**/
}
- public RecipientDataTransferObject(RecipientByNameAndAddress recipientByNameAndAddress, PrintDetailsDataTransferObject printDetailsDataTransferObject = null)
+ public RecipientDataTransferObject(RecipientByNameAndAddressDataTranferObject recipientByNameAndAddressDataTranferObject, PrintDetailsDataTransferObject printDetailsDataTransferObject = null)
{
- IdentificationValue = recipientByNameAndAddress;
+ IdentificationValue = recipientByNameAndAddressDataTranferObject;
IdentificationType = IdentificationChoiceType.NameAndAddress;
PrintDetailsDataTransferObject = printDetailsDataTransferObject;
}
@@ -39,7 +39,7 @@ public RecipientDataTransferObject(PrintDetailsDataTransferObject printDetailsDa
}
[XmlElement("digipost-address", typeof (string))]
- [XmlElement("name-and-address", typeof (RecipientByNameAndAddress))]
+ [XmlElement("name-and-address", typeof (RecipientByNameAndAddressDataTranferObject))]
[XmlElement("organisation-number", typeof (string))]
[XmlElement("personal-identification-number", typeof (string))]
[XmlChoiceIdentifier("IdentificationType")]
diff --git a/Digipost.Api.Client.Domain/Digipost.Api.Client.Domain.csproj b/Digipost.Api.Client.Domain/Digipost.Api.Client.Domain.csproj
index e4277f6b..16b96396 100755
--- a/Digipost.Api.Client.Domain/Digipost.Api.Client.Domain.csproj
+++ b/Digipost.Api.Client.Domain/Digipost.Api.Client.Domain.csproj
@@ -40,9 +40,6 @@
true
-
- ..\packages\api-client-shared.1.0.5637.25994\lib\net45\ApiClientShared.dll
-
@@ -51,15 +48,17 @@
Properties\SharedAssemblyInfo.cs
+
-
+
-
-
+
+
+
@@ -80,12 +79,12 @@
-
+
@@ -125,17 +124,15 @@
-
-
+
+
+
-
-
-