public UOWExecutionHandler(UOWExecutionScopePrimer dependencyInjectionScopePrimer,
                            UOWConfigurator configurator,
                            UOWApplication application)
 {
     this.dependencyInjectionScopePrimer = dependencyInjectionScopePrimer;
     this.configurator = configurator;
     this.application  = application;
 }
        public void Save_SimpleAndPrimitiveProperties_JsonOk()
        {
            UnitOfWork uow = new UnitOfWorkFactory().Create(typeof(ConfigTestUOWInstance).GetMethod(nameof(ConfigTestUOWInstance.Method1)));

            uow.LastRunDateTime = DateTime.Now;

            var config = new UOWConfigurator();

            config.Save(uow, new ConfigTestUOWInstance());
        }
 public ExecutorService(UnitOfWorkResolver unitOfWorkFromAssemblyPrimer,
                        UOWExecutionHandler executionHandler,
                        UOWScheduleFactory scheduleFactory,
                        UOWConfigurator configurator,
                        UOWApplication application,
                        IServiceProvider serviceProvider)
 {
     this.unitOfWorkFromAssemblyPrimer = unitOfWorkFromAssemblyPrimer;
     this.executionHandler             = executionHandler;
     this.scheduleFactory  = scheduleFactory;
     this.configurator     = configurator;
     this.application      = application;
     this.serviceProvider  = serviceProvider;
     this.unitOfWorkTimers = new Dictionary <System.Timers.Timer, UnitOfWork>();
 }
        public void Load_SimpleAndPrimitiveProperties_Ok()
        {
            UnitOfWork uow = new UnitOfWorkFactory().Create(typeof(ConfigTestUOWInstance).GetMethod(nameof(ConfigTestUOWInstance.Method1)));

            uow.LastRunDateTime = DateTime.Now;

            var config = new UOWConfigurator();

            var instance = new ConfigTestUOWInstance
            {
                Property1 = null,
                Property2 = null
            };

            config.Load(uow, instance);
        }