public void AreCredentialsOkay_CredentialsAreOk_ReturnsTrue() { var fakeMetaDataReader = new Mock <ISampleMetadataReader>(); var listRequester = new ListRequester(Configuration, Logger, fakeMetaDataReader.Object, GetShareConfig()); Assert.True(listRequester .AreCredentialsOkay("GanzTollerTauschPartner", "test123", "eltesto")); }
public void AreCredentialsOkay_PartnerDoesExistButWrongPassword_ReturnsFalse() { var fakeMetaDataReader = new Mock <ISampleMetadataReader>(); var listRequester = new ListRequester(Configuration, Logger, fakeMetaDataReader.Object, GetShareConfig()); Assert.False(listRequester .AreCredentialsOkay("netisee", "FalschesPasswort", "eltesto")); }