Esempio n. 1
0
        public void DeleteTask(int id)
        {
            // 1. Arrange
            var repo = new TaskReposiroty(new Data.IngenumKanbanContext(new Microsoft.EntityFrameworkCore.DbContextOptions <Data.IngenumKanbanContext>()));
            var task = repo.Get(id);

            // 2. Act
            var result = repo.Delete(task);

            // 3. Assert
            Assert.True(result);
        }
Esempio n. 2
0
 public BoardController(BoardRepository repo, TaskReposiroty taskRepo)
 {
     this.repoBoard = repo;
     this.repoTask  = taskRepo;
 }
Esempio n. 3
0
 public TaskController(TaskReposiroty _taskRepo)
 {
     this.taskReposiroty = _taskRepo;
 }