public void UseJobContextTest() { DateTime myDob = new DateTime(2001, 04, 01); FakeJobContextClass classStoredInContext = new FakeJobContextClass(); JobContext ctx = new JobContext(this.FakeLogger); ctx.Data.Add("name", "bill"); ctx.Data.Add("dob", myDob); ctx.Data.Add("aclass", classStoredInContext); Assert.Equal("bill", ctx.Data["name"].ToString()); Assert.Equal(myDob, (DateTime) ctx.Data["dob"]); Assert.Equal(false, ((FakeJobContextClass) ctx.Data["aclass"]).Disposed); ctx.Dispose(); Assert.True(classStoredInContext.Disposed); }
public FakeSimpleCommand(ILogProvider log, JobContext ctx) : base(log, ctx) { }
protected BaseCommand(ILogProvider log, JobContext ctx) { this.Log = log; this.Context = ctx; }
public HelloWorldCommand(ILogProvider log, JobContext ctx) : base(log, ctx) { }