Пример #1
0
        public void ValidatePropertiesReturnsFalseForNullApplicationId(string applicationId)
        {
            var application = new Application("organizationId", applicationId);
            var listener    = new RequestLogsApiListener(application);

            bool isValid = listener.ValidateProperties();

            Assert.IsFalse(isValid);
        }
Пример #2
0
        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);
        }