public Signature( GroupId groupId, int page, double x, double y) { SignerEmail = null; GroupId = groupId; Page = page; X = x; Y = y; }
public Signer( GroupId groupId ) { GroupId = groupId; Email = null; FirstName = null; LastName = null; authentication = new Authentication(AuthenticationMethod.EMAIL); }
public void BuildInitialsForGroup() { GroupId groupId = new GroupId("myGroupId"); Signature signature = SignatureBuilder.InitialsFor(groupId).Build(); Assert.AreEqual(groupId, signature.GroupId); Assert.IsNull(signature.SignerEmail); Assert.AreEqual(SignatureStyle.INITIALS, signature.Style); }
public void BuildAcceptanceForGroup() { GroupId groupId = new GroupId("myGroupId"); Signature signature = SignatureBuilder.AcceptanceFor(groupId).Build(); Assert.AreEqual(groupId, signature.GroupId); Assert.IsNull(signature.SignerEmail); Assert.AreEqual(SignatureStyle.ACCEPTANCE, signature.Style); }
public void BuildSignatureForGroup() { GroupId groupId = new GroupId("myGroupId"); Signature signature = SignatureBuilder.SignatureFor(groupId).Build(); Assert.AreEqual(groupId, signature.GroupId); Assert.IsNull(signature.SignerEmail); Assert.AreEqual(SignatureStyle.FULL_NAME, signature.Style); }
public GroupBuilder WithId( GroupId id ) { this.id = id; return this; }
private string FindRoleIdForGroup (GroupId groupId, Silanis.ESL.API.Package createdPackage ) { foreach (Silanis.ESL.API.Role role in createdPackage.Roles) { if (role.Signers.Count > 0 && role.Signers[0].Group != null) { if (groupId.Id.Equals(role.Signers[0].Group.Id)) { return role.Id; } } } throw new EslException(String.Format ("No Role found for group with id {0}", groupId.Id)); }