public void TextInitialize() { 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>(); _trackWorkTimeCommand = commandFactory.GetInstance <TrackWorkTimeCommand>(); _sut = queryFactory.GetInstance <GetTasksScheduleQuery>(); }