Пример #1
0
 private QueuedTest CreateFromRequest(TestQueueRequest request)
 {
     return new QueuedTest
     {
         Feature = request.Feature,
         Scenario = request.Scenario,
         TargetEnvironment = request.Environment,
         WhenCreated = DateTime.Now
     };
 }
Пример #2
0
 public QueuedTest Push(TestQueueRequest request)
 {
     var test = CreateFromRequest(request);
     Q.Enqueue(test);
     return test;
 }