Example #1
0
 public void Init(string email, IRepository repository)
 {
     if (!string.IsNullOrEmpty(email))
     {
         User = repository.GetUser(email);
     }
 }
 public CurrentUser(IRepository repository)
 {
     _repository = repository;
     // TODO replace with reference to the logged in user
     _currentUser = _repository.GetUser(1);
 }
 public void Init(string login, IRepository repository)
 {
     if (!string.IsNullOrEmpty(login))
         User = repository.GetUser(login);
 }