public void TestGetUser() { _authorizationService = new AbilityAuthorizationService(new UserRepository(), new RoleRepository(), new AbilityRepository()); _authorizationService.AddUser(_user1); _authorizationService.AddUser(_user2); IUser user = _authorizationService.GetUser("User1"); Assert.AreEqual(user, _user1); }