public new static void ClassInit(TestContext context) { int ms = -5000; DataTestScenario.ClassInit(context); var msg = new Message(); msg.Value = "Job Sweeper Test"; using (TurbineModelContainer container = new TurbineModelContainer()) { jobCount = container.Jobs.Count(); foreach (Job obj in container.Jobs.OrderBy(s => s.Submit)) { ms -= 500; obj.Messages.Add(msg); obj.State = "submit"; obj.Submit = DateTime.UtcNow.AddMilliseconds(ms); } container.SaveChanges(); } }
public static void ClassInit(TestContext context) { DataTestScenario.ClassInit(context); }