private static void FactoryDesignPattern() { NotifyFactory notifyFactory = new NotifyFactory(); INotifyService notify = notifyFactory.Create("MAIL"); notify.Send(new CreationalPatterns.Factory.User()); }
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); }