public void UpdateUserThrows() { MockUser original = MockUser.CreateDefaultUser(); MockUser user = MockUser.CreateInitializedUser(); MockAuthentication provider = ServerTestHelper.CreateInitializedDomainService <MockAuthentication>(DomainOperationType.Submit); ExceptionHelper.ExpectException <UnauthorizedAccessException>( () => provider.UpdateUser(user)); }
public void UpdateUser() { MockUser original = MockUser.CreateDefaultUser(); MockUser user = MockUser.CreateInitializedUser(); MockAuthentication provider = new MockAuthentication(); AuthenticationBaseTest.SetUserInProviders(original); provider.UpdateUser(user); AuthenticationBaseTest.CompareUsers(user, original, false); }