Esempio n. 1
0
        private static void FactoryDesignPattern()
        {
            NotifyFactory  notifyFactory = new NotifyFactory();
            INotifyService notify        = notifyFactory.Create("MAIL");

            notify.Send(new CreationalPatterns.Factory.User());
        }
Esempio n. 2
0
        protected override void zExecuteStep()
        {
            string message = DataUtils.ApplyStateVariablesToString(m_Step.Message, CurrentScope.DataScope, m_Step.TrimVariableValueWhitespace);

            foreach (notificationModel.Notification notification in m_Step.Notifications)
            {
                INotify notify = NotifyFactory.GetNotification(notification, m_Context.BrowserHelper.Browser);
                notify.Send("WebHawk Notification", message);
            }

            zCompleteStep(StepResult.Success);
        }