public void SimpleAutentificatorTest1() { var api = new Data.DataBase.ApiDb(@$ "../../../../db_example.json"); var auth = new SimpleAuthenticator(api); var temp = api.GetAllWorkers().First(); Assert.True(auth.Verify(temp.Login, temp.Password)); }
public void Authenticator_ShouldTakeAssignedValue_WhenItIsNotNull() { var expectedAuthenticator = new SimpleAuthenticator(string.Empty, string.Empty, string.Empty, string.Empty); var client = CreateClient(); client.Authenticator = expectedAuthenticator; Assert.AreSame(expectedAuthenticator, client.Authenticator); }