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); }
public Guid Insert(Status status) { _db.Status.Add(status); return status.IdStatus; }