Esempio n. 1
0
 public void DoLogin(AppUser authenticatedUser)
 {
     if (Entity == null)
     {
         Entity = authenticatedUser;
         LoadPermissions(authenticatedUser.Id);
         Instance = this;
     }
 }
Esempio n. 2
0
 public static void Login(AppUser authenticatedUser)
 {
     if (Instance == null) return;
     Instance.DoLogin(authenticatedUser);
 }
Esempio n. 3
0
 protected override void Setup()
 {
     _testUser = new AppUser { Id = 1, FirstName = "Fred", UserName = "******", Email = "*****@*****.**" };
     List<Entity> entities = new List<Entity>();
     entities.Add(_testUser);
     Setup(entities);
     _viewModel.UserName = "******";
     _viewModel.Password = "******";
 }