public static Token GetToken()
 {
     Token res = new Token();
     res.CreationDate = RandomIntModifier();
     res.ExpirationDate = RandomIntModifier();
     res.Name = "GeneratedToken" + RandomIntModifier();
     return res;
 }
 public static CommandLog GetFilledCommandLog(Command comm = null, Token tok = null)
 {
     CommandLog comL = EntityGenerator.GetCommandLog();
     if (comm == null)
         comm = GetFilledCommand();
     if (tok == null)
         tok = GetFilledToken();
     comL.Command = comm;
     comL.Token = tok;
     commLogRep.Save(comL);
     return comL;
 }
 public void Prepare()
 {
     device = ScenarioGenerator.GetFilledDevice();
     Console.WriteLine("Device ID: " + device.Id);
     command = new List<Command>();
     for (int i = 0; i < 10; i++)
     {
         Command temp = ScenarioGenerator.GetFilledCommand(device);
         command.Add(temp);
         Console.WriteLine("Command ID: " + temp.Id);                
     }
     token = ScenarioGenerator.GetFilledToken();
    
 }
 public static TokenDTO Convert(Token from)
 {
     throw new NotImplementedException();
 }