public async void ShouldVerifyAddedUser(DbUserRepository repository) { await repository.AddUserAsync(new RegisterModel() { Username = "******", Password = "******", PasswordConfirmation = "пороль" }); await repository.VerifyCredentialsAsync( new LoginModel() { Login = "******", Password = "******", } ); }
public async void ShouldNotVerifyNotAddedUser( DbUserRepository repository, LoginModel credentials) => await Assert.ThrowsAsync <AuthenticationException>(() => repository.VerifyCredentialsAsync(credentials));