//---------- change password ----------- //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldChangePassword() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldChangePassword() { // Given AssertEmpty(_admin, "CALL dbms.changePassword('abc')"); Debug.Assert(_authManager.getUser("neo4j").credentials().matchesPassword("abc")); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldSetPassword() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldSetPassword() { // Given _manager.start(); _manager.newUser("jake", Password("abc123"), true); // When _manager.setUserPassword("jake", Password("hello, world!"), false); // Then User user = _manager.getUser("jake"); assertTrue(user.Credentials().matchesPassword("hello, world!")); assertThat(Users.getUserByName("jake"), equalTo(user)); }