public void verify_stop_profiler_command_gets_processed()
        {
            var command        = new MockCommand("stop_profiler");
            var commandService = new CommandService(_dataTransportService, Mock.Create <IScheduler>());

            commandService.AddCommands(command);
            var commands = JsonConvert.DeserializeObject <IEnumerable <CommandModel> >("[[666,{name:\"stop_profiler\",arguments:{}}]]");

            Assert.AreEqual(0, command.Attempts);
            commandService.ProcessCommands(commands);
            Assert.AreEqual(1, command.Attempts);
        }
        public void verify_start_profiler_command_requires_profile_id_argument()
        {
            var command = new MockCommand("start_profiler");

            command.RequiredArguments.Add("profile_id");

            var commandService = new CommandService(_dataTransportService, Mock.Create <IScheduler>());

            commandService.AddCommands(command);
            var commands = JsonConvert.DeserializeObject <IEnumerable <CommandModel> >("[[666,{name:\"start_profiler\",arguments:{}}]]");

            commandService.ProcessCommands(commands);
        }