コード例 #1
0
 public static Token GetToken()
 {
     Token res = new Token();
     res.CreationDate = RandomIntModifier();
     res.ExpirationDate = RandomIntModifier();
     res.Name = "GeneratedToken" + RandomIntModifier();
     return res;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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();
    
 }
コード例 #4
0
 public static TokenDTO Convert(Token from)
 {
     throw new NotImplementedException();
 }