Test() public method

public Test ( string args, System.Guid workspaceId, System.Guid dataListId ) : ValidationResult
args string
workspaceId System.Guid
dataListId System.Guid
return Dev2.Runtime.Diagnostics.ValidationResult
Esempio n. 1
0
        public void WebSourcesTestWithInvalidAddressExpectedInvalidValidationResult()
        {
            var source = new WebSource { Address = "www.foo.bar", AuthenticationType = AuthenticationType.Anonymous }.ToString();

            var handler = new WebSources();
            var result = handler.Test(source, Guid.Empty, Guid.Empty);
            Assert.IsFalse(result.IsValid, result.ErrorMessage);
        }
Esempio n. 2
0
 public void WebSourcesTestWithInValidArgsExpectedInvalidValidationResult()
 {
     var handler = new WebSources();
     var result = handler.Test("root:'hello'", Guid.Empty, Guid.Empty);
     Assert.IsFalse(result.IsValid);
 }