Beispiel #1
0
        public void Creator_Respects_StaticJob_Handling()
        {
            var next  = JobCreator.Create <StaticClassJob>((j) => SampleJobStaticClass.DoThing());
            var jobEx = new DefaultJobExecutor(new DefaultContainerFactory());

            jobEx.ExecuteJob(next);
            Xunit.Assert.True(SampleJobStaticClass.Called);
        }
Beispiel #2
0
        public void Can_Run_Static_Method_On_Static_Class()
        {
            var next  = JobCreator.Create <object>((j) => SampleJobStaticClass.DoThing());
            var jobEx = new DefaultJobExecutor(new DefaultContainerFactory());

            jobEx.ExecuteJob(next);
            Xunit.Assert.True(SampleJobStaticClass.Called);
        }