Exemple #1
0
 public void DoLogin(AppUser authenticatedUser)
 {
     if (Entity == null)
     {
         Entity = authenticatedUser;
         LoadPermissions(authenticatedUser.Id);
         Instance = this;
     }
 }
Exemple #2
0
 public static void Login(AppUser authenticatedUser)
 {
     if (Instance == null) return;
     Instance.DoLogin(authenticatedUser);
 }
 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 = "******";
 }