public InnerPlayerBase(string pMethodSignature, string pRequestIdentifierKey, string pRequestDisplayInfo) { methodSignature = pMethodSignature; requestIdentifierKey = pRequestIdentifierKey; requestDisplayInfo = pRequestDisplayInfo; api = new TestFlaskApi(); }
private void CreateAutoStep(HttpRequest request) { Step autoStep = new Step(); autoStep.StepName = $"Auto Step {DateTime.Now.ToString("yyyyMMddHHmmssfff")}"; autoStep.StepDescription = "Auto Step Description"; autoStep.ProjectKey = request.Headers[ContextKeys.ProjectKey]; autoStep.ScenarioNo = long.Parse(request.Headers[ContextKeys.ScenarioNo]); var api = new TestFlaskApi(); var dbStep = api.InsertStep(autoStep); HttpContext.Current.Items.Add(ContextKeys.StepNo, dbStep.StepNo); }
public TestFlaskAssistantController() { config = TestFlaskAssistantConfig.Instance; context = TestFlaskAssistantContext.Current; api = new TestFlaskApi(); }