Exemplo n.º 1
0
 public void CreateRobotCommand(Robot robot, Program program, RobotCommandTypes commandType)
 => data.RobotCommands.Add(new Entities.RobotCommand
 {
     Argument = program.ProgramID,
     Robot    = robot,
     Type     = (int)commandType
 });
Exemplo n.º 2
0
 public void CreateRobotCommand(Robot robot, Program program, RobotCommandTypes commandType)
     => data.RobotCommands.Add(new Entities.RobotCommand
     {
         Argument = program.ProgramID,
         Robot = robot,
         Type = (int) commandType
     });
Exemplo n.º 3
0
 private void CheckOneTypeCommand(Robot robot, Program program,  RobotCommandTypes type)
 {
   var amount = data.RobotCommands.Data.Count();
   _manager.CreateRobotCommand(robot, program, type);
   var command = data.RobotCommands.Data.Last();
   Assert.AreEqual(amount + 1, data.RobotCommands.Data.Count());
   Assert.AreEqual(command.Argument, program.ProgramID);
   Assert.AreSame(command.Robot, robot);
   Assert.AreEqual(command.Type, (int) type);
 }
Exemplo n.º 4
0
        private void CheckOneTypeCommand(Robot robot, Program program, RobotCommandTypes type)
        {
            var amount = data.RobotCommands.Data.Count();

            _manager.CreateRobotCommand(robot, program, type);
            var command = data.RobotCommands.Data.Last();

            Assert.AreEqual(amount + 1, data.RobotCommands.Data.Count());
            Assert.AreEqual(command.Argument, program.ProgramID);
            Assert.AreSame(command.Robot, robot);
            Assert.AreEqual(command.Type, (int)type);
        }