public static JiraSimulationManager GetInstance() { if (_instance == null) { _instance = new JiraSimulationManager(); } return(_instance); }
public static IForm <Issue> MakeForm() { FormBuilder <Issue> order = new FormBuilder <Issue>(); return(order .Message("Enter the issue fields") .Field(nameof(IssueCode), validate: IssueCodeValidator) .Field(nameof(Title)) .AddRemainingFields() .OnCompletion(async(session, issue) => { JiraSimulationManager.GetInstance().AddIssue(issue); }) .Message("Thank you, I have submitted your message.") .Build()); }