private bool TestCommand(IGSCommand gSCommand, string pattern) { string command = gSCommand.GetCommand(); command = RemoveWhitespaces(command); return(Regex.Match(command, pattern).Success); }
private StringContent GetCommandContent(IGSCommand command) { return(new StringContent(command.GetCommand(), Encoding.UTF8, "application/json")); }