Example #1
0
        public FluentRecordBase AddWorkerSignin(
            Worker worker = null
            //DateTime? datecreated = null,
            //DateTime? dateupdated = null
            )
        {
            //
            // DEPENDENCIES
            _servWSI = container.Resolve <IWorkerSigninService>();
            if (worker != null)
            {
                _w = worker;
            }
            if (_w == null)
            {
                AddWorker();
            }
            //
            // ARRANGE

            //
            // ACT
            _wsi = _servWSI.CreateSignin(_w.dwccardnum, DateTime.Now, _user);
            return(this);
        }
 public WorkerSigninController(IWorkerSigninService workerSigninService, 
     IWorkerService workerService,
     LookupCache lc)
 {
     this._serv = workerSigninService;
     this._wServ = workerService;
     this.lcache = lc;
 }
 public WorkerSigninController(IWorkerSigninService workerSigninService,
                               IDefaults def,
                               IMapper map)
 {
     this.serv = workerSigninService;
     this.map  = map;
     this.def  = def;
 }
Example #4
0
 public WorkerSigninController(
     IWorkerSigninService workerSigninService,
     ITenantService tenantService,
     IMapper map)
 {
     _serv = workerSigninService;
     _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
     _map = map;
 }
Example #5
0
        public FluentRecordBase AddWorkerSignin(Worker worker = null)
        {
            // ARRANGE
            _servWSI = container.GetRequiredService <IWorkerSigninService>();
            var _w = worker ?? AddWorker();

            //
            // ACT
            _wsi = _servWSI.CreateSignin(_w.dwccardnum, DateTime.Now, _user);
            return(this);
        }
Example #6
0
 public WorkerSigninController(IWorkerSigninService workerSigninService,
                               IWorkerService workerService,
                               LookupCache lc,
                               IDefaults def,
                               IMapper map)
 {
     this._serv  = workerSigninService;
     this._wServ = workerService;
     this.lcache = lc;
     this.map    = map;
     this.def    = def;
 }
 public WorkAssignmentController(IWorkAssignmentService workAssignmentService,
                                 IWorkerService workerService,
                                 IWorkOrderService workOrderService,
                                 IWorkerSigninService signinService,
                                 ILookupCache lc)
 {
     this.waServ = workAssignmentService;
     this.wkrServ = workerService;
     this.woServ = workOrderService;
     this.wsiServ = signinService;
     this.lcache = lc;
 }
Example #8
0
        public WorkAssignmentController(IWorkAssignmentService workAssignmentService,
                                        IWorkOrderService workOrderService,
                                        IWorkerSigninService signinService,
                                        IDefaults def,
                                        IMapper map)

        {
            this.waServ  = workAssignmentService;
            this.woServ  = workOrderService;
            this.wsiServ = signinService;
            this.map     = map;
            this.def     = def;
        }
Example #9
0
        public FluentRecordBase AddWorkerSignin(Worker worker = null)
        {
            // ARRANGE
            _servWSI = container.GetRequiredService <IWorkerSigninService>();
            var _w = worker ?? AddWorker();

            //
            // ACT (convert to UTC, as the client would)
            _wsi = _servWSI.CreateSignin(
                _w.dwccardnum,
                TimeZoneInfo
                .ConvertTimeToUtc(DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Unspecified), ClientTimeZoneInfo),
                _user
                );
            return(this);
        }
 public WorkAssignmentController(
     IWorkAssignmentService workAssignmentService,
     IWorkOrderService workOrderService,
     IWorkerSigninService signinService,
     IDefaults defaults,
     IMapper map,
     IModelBindingAdaptor adaptor,
     ITenantService tenantService
     )
 {
     waServ              = workAssignmentService;
     woServ              = workOrderService;
     wsiServ             = signinService;
     this.map            = map;
     _defaults           = defaults;
     _adaptor            = adaptor;
     _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
 }