public void CreateInvitationShould()
        {
            Guid        testGuid   = Guid.NewGuid();
            IInvitation invitation = _invitationFactory.CreateInvitation(testGuid, "*****@*****.**");

            Assert.Equal(testGuid, invitation.Id);
            Assert.Equal("*****@*****.**", invitation.Email);
        }
Ejemplo n.º 2
0
        public static Invitation Map(this IInvitationEntity entity, IInvitationFactory factory)
        {
            var invitation = factory.CreateInvitation();

            entity.UserToUserRequestEntity.MapTo(invitation);
            invitation.InviterId           = entity.inviterId;
            invitation.InviteeId           = entity.inviteeId;
            invitation.InviteeEmailAddress = entity.inviteeEmailAddress;
            return(invitation);
        }