Пример #1
0
 public void SetUp()
 {
     _userRepository = new UserRepository(_db);
     _taskRepository = new TaskRepository(_db);
     _simpleUser = new User() { Name = "Name" };
     _simpleUser.IdUser = _userRepository.Insert(_simpleUser);
 }
Пример #2
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);
 }