예제 #1
0
 public TaskRepositoryTest()
 {
     _taskRepository = new TaskRepository(_db);
     _statusRepository = new StatusRepository(_db);
     _simpleTask = new Task() { Name = "SimpleTask", Priority = 12 };
     _newStatus = new Status() {
         IdStatus = new Guid("00000000-0000-0000-0000-000000000001"),
         Name = "Started"
     };
     _statusRepository.Insert(_newStatus);
 }
예제 #2
0
 public Guid Insert(Status status)
 {
     _db.Status.Add(status);
     return status.IdStatus;
 }