public Sender InviteUser(AccountMember invitee) { Silanis.ESL.API.Sender apiSender = new AccountMemberConverter( invitee ).ToAPISender(); Silanis.ESL.API.Sender apiResponse = apiClient.InviteUser( apiSender ); Sender result = new SenderConverter( apiResponse ).ToSDKSender(); return result; }
public OneSpanSign.Sdk.Sender GetSender(string senderId) { OneSpanSign.API.Sender apiResponse = apiClient.GetSender(senderId); Sender result = new SenderConverter(apiResponse).ToSDKSender(); return(result); }
public Silanis.ESL.SDK.Sender GetSender(string senderId) { Silanis.ESL.API.Sender apiResponse = apiClient.GetSender(senderId); Sender result = new SenderConverter(apiResponse).ToSDKSender(); return(result); }
public Sender InviteUser(AccountMember invitee) { OneSpanSign.API.Sender apiSender = new AccountMemberConverter(invitee).ToAPISender(); OneSpanSign.API.Sender apiResponse = apiClient.InviteUser(apiSender); Sender result = new SenderConverter(apiResponse).ToSDKSender(); return(result); }
public void ToSDKFromAPISender() { Silanis.ESL.API.Sender sender = CreateTypicalAPISender(); SenderInfo senderInfo = new SenderConverter(sender).ToSDKSenderInfo(); Assert.IsNotNull(senderInfo); Assert.AreEqual(sender.Email, senderInfo.Email); Assert.AreEqual(sender.FirstName, senderInfo.FirstName); Assert.AreEqual(sender.LastName, senderInfo.LastName); Assert.AreEqual(sender.Company, senderInfo.Company); Assert.AreEqual(sender.Title, senderInfo.Title); }
public void ToAPIFromSDKSenderInfo() { Silanis.ESL.SDK.SenderInfo senderInfo = new Silanis.ESL.SDK.SenderInfo(); senderInfo.Email = EMAIL; senderInfo.FirstName = FIRST_NAME; senderInfo.LastName = LAST_NAME; senderInfo.Company = COMPANY; senderInfo.Title = TITLE; Silanis.ESL.API.Sender sender = new SenderConverter(senderInfo).ToAPISender(); Assert.IsNotNull(sender); Assert.AreEqual(senderInfo.Email, sender.Email); Assert.AreEqual(senderInfo.FirstName, sender.FirstName); Assert.AreEqual(senderInfo.LastName, sender.LastName); Assert.AreEqual(senderInfo.Company, sender.Company); Assert.AreEqual(senderInfo.Title, sender.Title); }
public void ToAPIFromSDKSenderInfo() { OneSpanSign.Sdk.SenderInfo senderInfo = new OneSpanSign.Sdk.SenderInfo(); senderInfo.Email = EMAIL; senderInfo.FirstName = FIRST_NAME; senderInfo.LastName = LAST_NAME; senderInfo.Company = COMPANY; senderInfo.Title = TITLE; senderInfo.TimezoneId = TIMEZONE_ID; OneSpanSign.API.Sender sender = new SenderConverter(senderInfo).ToAPISender(); Assert.IsNotNull(sender); Assert.AreEqual(senderInfo.Email, sender.Email); Assert.AreEqual(senderInfo.FirstName, sender.FirstName); Assert.AreEqual(senderInfo.LastName, sender.LastName); Assert.AreEqual(senderInfo.Company, sender.Company); Assert.AreEqual(senderInfo.Title, sender.Title); Assert.AreEqual(senderInfo.TimezoneId, sender.TimezoneId); }
public void ToSDKSenderFromAPISender() { Silanis.ESL.API.Sender apiSender = CreateTypicalAPISender(); Silanis.ESL.SDK.Sender sdkSender = new SenderConverter(apiSender).ToSDKSender(); Assert.AreEqual(sdkSender.Status.ToString(), apiSender.Status.ToString()); Assert.AreEqual(sdkSender.LastName, apiSender.LastName); Assert.AreEqual(sdkSender.FirstName, apiSender.FirstName); Assert.AreEqual(sdkSender.Company, apiSender.Company); Assert.AreEqual(sdkSender.Created, apiSender.Created); Assert.AreEqual(sdkSender.Email, apiSender.Email); Assert.AreEqual(sdkSender.Language, apiSender.Language); Assert.AreEqual(sdkSender.Phone, apiSender.Phone); Assert.AreEqual(sdkSender.Name, apiSender.Name); Assert.AreEqual(sdkSender.Title, apiSender.Title); Assert.AreEqual(sdkSender.Type.ToString(), apiSender.Type.ToString()); Assert.AreEqual(sdkSender.Updated, apiSender.Updated); Assert.AreEqual(sdkSender.Id, apiSender.Id); Assert.AreEqual(sdkSender.External.Id, apiSender.External.Id); Assert.AreEqual(sdkSender.External.Provider, apiSender.External.Provider); Assert.AreEqual(sdkSender.External.ProviderName, apiSender.External.ProviderName); }
public void ToSDKSenderFromAPISender() { OneSpanSign.API.Sender apiSender = CreateTypicalAPISender(); OneSpanSign.Sdk.Sender sdkSender = new SenderConverter(apiSender).ToSDKSender(); Assert.AreEqual(sdkSender.Status.getApiValue(), apiSender.Status); Assert.AreEqual(sdkSender.LastName, apiSender.LastName); Assert.AreEqual(sdkSender.FirstName, apiSender.FirstName); Assert.AreEqual(sdkSender.Company, apiSender.Company); Assert.AreEqual(sdkSender.Created, apiSender.Created); Assert.AreEqual(sdkSender.Email, apiSender.Email); Assert.AreEqual(sdkSender.Language, apiSender.Language); Assert.AreEqual(sdkSender.Phone, apiSender.Phone); Assert.AreEqual(sdkSender.Name, apiSender.Name); Assert.AreEqual(sdkSender.Title, apiSender.Title); Assert.AreEqual(sdkSender.Type.ToString(), apiSender.Type.ToString()); Assert.AreEqual(sdkSender.Updated, apiSender.Updated); Assert.AreEqual(sdkSender.Id, apiSender.Id); Assert.AreEqual(sdkSender.TimezoneId, apiSender.TimezoneId); Assert.AreEqual(sdkSender.External.Id, apiSender.External.Id); Assert.AreEqual(sdkSender.External.Provider, apiSender.External.Provider); Assert.AreEqual(sdkSender.External.ProviderName, apiSender.External.ProviderName); }
public void UpdateSender(SenderInfo senderInfo, string senderId) { OneSpanSign.API.Sender apiSender = new SenderConverter(senderInfo).ToAPISender(); apiSender.Id = senderId; apiClient.UpdateSender(apiSender, senderId); }
public void UpdateSender(SenderInfo senderInfo, string senderId) { Silanis.ESL.API.Sender apiSender = new SenderConverter(senderInfo).ToAPISender(); apiSender.Id = senderId; apiClient.UpdateSender(apiSender, senderId); }
public Silanis.ESL.SDK.Sender GetSender(string senderId) { Silanis.ESL.API.Sender apiResponse = apiClient.GetSender(senderId); Sender result = new SenderConverter(apiResponse).ToSDKSender(); return result; }
public void FromAPINull() { Silanis.ESL.API.Sender sender = null; SenderConverter converter = new SenderConverter(sender); }
public void FromSDKNull() { Silanis.ESL.SDK.SenderInfo senderInfo = null; SenderConverter converter = new SenderConverter(senderInfo); }