public RouteListWorkingJournalViewModel( RouteListJournalFilterViewModel filterViewModel, IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices, IRouteListRepository routeListRepository, FuelRepository fuelRepository, CallTaskRepository callTaskRepository, BaseParametersProvider baseParametersProvider, SubdivisionRepository subdivisionRepository) : base(filterViewModel, unitOfWorkFactory, commonServices) { TabName = "Работа кассы с МЛ"; this.routeListRepository = routeListRepository; this.fuelRepository = fuelRepository; this.callTaskRepository = callTaskRepository; this.baseParametersProvider = baseParametersProvider; this.subdivisionRepository = subdivisionRepository; UseSlider = false; NotifyConfiguration.Enable(); NotifyConfiguration.Instance.BatchSubscribeOnEntity <RouteList>(OnRouteListChanged); InitPopupActions(); }
public void when_add_new_call_task_then_is_created_in_repository() { ICallTaskRepository repository = new CallTaskRepository(); var task = new Task(); task._id = correlationId; task.Date = new DateTime(2017, 12, 01); task.BeginTime = new TimeSpan(9, 0, 0); task.User = "******"; task.CorrelationId = correlationId; repository.Add(task); }
public void when_update_call_task_then_update_enddate_in_repository() { ICallTaskRepository repository = new CallTaskRepository(); var task = new Task(); task._id = correlationId; task.Date = new DateTime(2017, 12, 01); task.BeginTime = new TimeSpan(9, 0, 0); task.User = "******"; task.CorrelationId = correlationId; task.EndTime = new TimeSpan(9, 3, 0); var taskUpdate = repository.Update(task); }