Сервис для работы с задачами.
예제 #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
            };
        }
예제 #2
0
 public void TaskService_Void_Success()
 {
     var s = new TaskService();
 }
예제 #3
0
 public TaskController()
 {
     _taskService = new TaskService();
 }