示例#1
0
        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();
            }
        }
示例#2
0
 public static void ClassInit(TestContext context)
 {
     DataTestScenario.ClassInit(context);
 }