示例#1
0
        public void SetWorkTimeNow()
        {
            var workTime             = new Task();
            var trackWorkTimeCommand = new TrackWorkTimeCommand();

            trackWorkTimeCommand.Run(workTime);
        }
示例#2
0
        public void TestInitialize()
        {
            var commandFactory = AssemblyConfiguration.Kernel.Get <CommandFactory>();
            var queryFactory   = AssemblyConfiguration.Kernel.Get <QueryFactory>();

            _getCurrentScheduleQuery = queryFactory.GetInstance <GetCurrentScheduleQuery>();
            _getTaskQuery            = queryFactory.GetInstance <GetTasksQuery>();
            _createTaskCommand       = commandFactory.GetInstance <CreateTaskCommand>();
            _createScheduleCommand   = commandFactory.GetInstance <CreateScheduleCommand>();
            _sut = commandFactory.GetInstance <TrackWorkTimeCommand>();
        }