public void DoThing(string derp, long herp, ClassTest aClass) { Xunit.Assert.Equal(derp, TestConstants.derp); Xunit.Assert.Equal(herp, TestConstants.herp); Xunit.Assert.Equal(aClass.classTestValue, TestConstants.classTestValue); System.Console.WriteLine("derp"); }
public void Can_Run_Jobs_With_Param_Type_Matching_And_Overloads() { var myValue = new ClassTest() { classTestValue = TestConstants.classTestValue }; var next = JobCreator.Create <SampleJob2>((j) => j.DoThing(TestConstants.derp, TestConstants.herp, myValue)); var jobEx = new DefaultJobExecutor(new DefaultContainerFactory()); jobEx.ExecuteJob(next); }
public void Can_Run_Job_With_Simple_Method_Calls() { var myValue = new ClassTest() { classTestValue = TestConstants.classTestValue }; var next = JobCreator.Create <SampleJob>((j) => j.DoThing(TestConstants.derp, int.Parse(TestConstants.herp.ToString()), myValue)); var jobEx = new DefaultJobExecutor(new DefaultContainerFactory()); jobEx.ExecuteJob(next); }
public void Can_Run_Job_And_pass_parameters() { var myValue = new ClassTest() { classTestValue = TestConstants.classTestValue }; var next = JobCreator.Create <SampleJob>((j) => j.DoThing(TestConstants.derp, TestConstants.herp, myValue)); var jobEx = new DefaultJobExecutor(new DefaultContainerFactory()); jobEx.ExecuteJob(next); }
public void Can_Run_Job_With_Arity_in_class_With_Arity() { var myvalue = new ClassTest() { classTestValue = TestConstants.classTestValue }; var next = JobCreator.Create <SampleJobInGenericClass <string> >(j => j.DoThing(TestConstants.derp, TestConstants.herp, myvalue)); var jobEx = new DefaultJobExecutor(new DefaultContainerFactory()); jobEx.ExecuteJob(next); }