public override void Init()
        {
            base.Init();
            var modelEmail = Application.Model.ToReactiveModule <IModelReactiveModulesEmail>().Email;

            Application.Model.Title = nameof(EmailModuleTests);
            var recipientType = modelEmail.RecipientTypes.AddNode <IModelEmailRecipientType>();

            recipientType.Type        = modelEmail.Application.BOModel.GetClass(typeof(EmailUser));
            recipientType.EmailMember = recipientType.Type.FindMember(nameof(EmailUser.Email));
            var emailAddress = modelEmail.EmailAddress.AddNode <IModelEmailAddress>();

            emailAddress.Address = "*****@*****.**";
            var smtpClient = modelEmail.SmtpClients.AddNode <IModelEmailSmtpClient>();

            smtpClient.From = emailAddress;
            smtpClient.Host = "mail.mail.com";
            var modelEmailRule  = modelEmail.Rules.AddNode <IModelEmailRule>();
            var emailObjectView = modelEmailRule.ObjectViews.AddNode <IModelEmailObjectView>();

            emailObjectView.ObjectView = emailObjectView.Application.BOModel.GetClass(typeof(E)).DefaultDetailView;
            emailObjectView.Subject    = emailObjectView.ObjectView.ModelClass.FindMember(nameof(E.Name));
            var emailRecipient = modelEmail.Recipients.AddNode <IModelEmailRecipient>();

            emailRecipient.RecipientType = recipientType;
            _viewRecipient            = modelEmailRule.ViewRecipients.AddNode <IModelEmailViewRecipient>();
            _viewRecipient.ObjectView = emailObjectView;
            _viewRecipient.Recipient  = emailRecipient;
            _viewRecipient.SmtpClient = smtpClient;
        }
 public IModelList <IModelEmailObjectView> Get_ObjectViews(IModelEmailViewRecipient recipient) => recipient.GetParent <IModelEmailRule>().ObjectViews;
 public IModelList <IModelEmailSmtpClient> Get_SmtpClients(IModelEmailViewRecipient recipient) => recipient.GetParent <IModelEmail>().SmtpClients;
 public IModelList <IModelEmailRecipient> Get_Recipients(IModelEmailViewRecipient recipient) => recipient.GetParent <IModelEmail>().Recipients;
 public string Get_Caption(IModelEmailViewRecipient recipient) => $"{recipient.ObjectView?.Id()} to {recipient.Recipient?.Id()}";