Esempio n. 1
0
 public void SetUp()
 {
     _userRepository = new UserRepository(_db);
     _taskRepository = new TaskRepository(_db);
     _simpleUser = new User() { Name = "Name" };
     _simpleUser.IdUser = _userRepository.Insert(_simpleUser);
 }
Esempio n. 2
0
        public void SetUp()
        {
            _groupRepository = new GroupRepository(_db);
            _userRepository = new UserRepository(_db);
            _simpleGroup = new Group() { Name = "Name" };
            _simpleGroup.IdGroup = _groupRepository.Insert(_simpleGroup);

            _simpleUserOne = new User() { Name = "SimpleUserOne", Login = "******" };
            _simpleUserOne.IdUser = _userRepository.Insert(_simpleUserOne);
            _simpleUserTwo = new User() { Name = "SimpleUserTwo", Login  = "******" };
            _simpleUserTwo.IdUser = _userRepository.Insert(_simpleUserTwo);
            _simpleUserThree = new User() { Name = "SimpleUserThree", Login = "******"};
            _simpleUserThree.IdUser = _userRepository.Insert(_simpleUserThree);
        }