Сервис для работы с задачами.
Esempio n. 1
0
        public void SetUp()
        {
            _taskRepository = Mock.Of<ITaskRepository>();
            _taskService = new TaskService(_taskRepository, _commentRepository);

            _task = new TaskItem()
            {
                Id = 1,
                Author = "",
                Deadline = DateTime.Now.AddDays(7).Date,
                Created = DateTime.Now.Date,
                Performer = "",
                Header = "Тестирование демонстрационной задачи",
                IsOpen = true,
                IsPerform = false,
                Mem = "Описание",
                Number = 1,
                Priority = 0,
                Prefix = TaskPrefix.Refactoring
            };
        }
Esempio n. 2
0
 public void TaskService_Void_Success()
 {
     var s = new TaskService();
 }
Esempio n. 3
0
 public TaskController()
 {
     _taskService = new TaskService();
 }