public void ValidatePropertiesReturnsFalseForNullApplicationId(string applicationId) { var application = new Application("organizationId", applicationId); var listener = new RequestLogsApiListener(application); bool isValid = listener.ValidateProperties(); Assert.IsFalse(isValid); }
public void ValidatePropertiesReturnsTrueForValidApiUrl(string apiUrl) { var application = new Application("organizationId", "applicationId"); var listener = new RequestLogsApiListener(application) { ApiUrl = apiUrl }; bool isValid = listener.ValidateProperties(); Assert.IsTrue(isValid); }