public void TearDown()
        {
            var result = _userController.Delete(_login.Id);

            _userDto        = null;
            _userController = null;
            _login          = null;
            _loginDao       = null;
        }
        public void SetUp()
        {
            //Creo un usuario para realizar las pruebas
            _userDto            = new UserDTO();
            _userController     = new UsersController();
            _userDto.Email      = "*****@*****.**";
            _userDto.DocumentId = 19986048;
            _userDto.Name       = "Carlos";
            _userDto.Lastname   = "Sanoja";
            _userDto.Password   = "******";
            var roles = new List <Role>();

            roles.Add(new Role(1, "Cliente"));
            _userDto.Roles = roles;
            var userResult = _userController.Post(_userDto).Value;

            _login    = new Login(_userDto.Id, _userDto.Email, _userDto.Password);
            _loginDao = (PostgresLoginDAO)DAOFactory.GetFactory(DAOFactory.Type.Postgres).GetLoginDAO();
        }