internal virtual IRequestAdapter CreateRequestAdapter(VirtualDirectoryUriScope urlType)
 {
     return(new RequestAdapter
     {
         RequestTimeout = TimeSpan.FromSeconds((double)this.RequestTimeout)
     });
 }
 internal CasTransactionOutcome(string clientAccessServer, string scenarioName, string scenarioDescription, string performanceCounterName, string localSite, bool secureAccess, string userName, string virtualDirectoryName, Uri url, VirtualDirectoryUriScope urlType, int port, ProtocolConnectionType connectionType) : this(clientAccessServer, scenarioName, scenarioDescription, performanceCounterName, localSite, secureAccess, userName)
 {
     this.VirtualDirectoryName = virtualDirectoryName;
     this.Url            = url;
     this.UrlType        = urlType;
     this.Port           = port;
     this.ConnectionType = connectionType;
 }
        internal override ITestStep CreateScenario(TestCasConnectivity.TestCasConnectivityRunInstance instance, Uri testUri, string userName, string domain, SecureString password, VirtualDirectoryUriScope testType, string serverFqdn)
        {
            ITestFactory testFactory = new TestFactory();
            ITestStep    result;

            if (testType == VirtualDirectoryUriScope.Internal || testType == VirtualDirectoryUriScope.Unknown)
            {
                result = testFactory.CreateEcpLoginScenario(testUri, userName, domain, password, testFactory);
            }
            else
            {
                result = testFactory.CreateEcpExternalLoginAgainstSpecificServerScenario(testUri, userName, domain, password, serverFqdn, testFactory);
            }
            return(result);
        }
 protected Uri GetTestUri(TestCasConnectivity.TestCasConnectivityRunInstance instance, out VirtualDirectoryUriScope uriType)
 {
     if (this.explicitlySetUrl != null)
     {
         uriType = VirtualDirectoryUriScope.Unknown;
         return(this.explicitlySetUrl);
     }
     uriType = instance.UrlType;
     return(instance.baseUri);
 }
 internal abstract ITestStep CreateScenario(TestCasConnectivity.TestCasConnectivityRunInstance instance, Uri testUri, string userName, string domain, SecureString password, VirtualDirectoryUriScope testType, string serverFqdn);
Esempio n. 6
0
 public TestEcpConnectivityOutcome(string casServerName, string mailboxServerName, string scenarioName, string scenarioDescription, string performanceCounterName, string localSite, bool secureAccess, string userName, string virtualDirectoryName, Uri targetUri, VirtualDirectoryUriScope targetUriScope) : base(casServerName, scenarioName, scenarioDescription, performanceCounterName, localSite, secureAccess, userName, virtualDirectoryName, targetUri, targetUriScope)
 {
     this.MailboxServer = ((!string.IsNullOrEmpty(mailboxServerName)) ? ServerIdParameter.Parse(mailboxServerName) : null);
 }
Esempio n. 7
0
 public TestEcpConnectivityOutcome(string virtualDirectoryName, string casServerName, string mailboxServerName, string localSite, Uri targetUri, VirtualDirectoryUriScope targetUriScope, string performanceCounterName, string userName) : base(casServerName, Strings.CasHealthEcpScenarioTestWebService, Strings.CasHealthEcpScenarioTestWebServiceDescription, performanceCounterName, localSite, targetUri != null && targetUri.AbsoluteUri != null && targetUri.AbsoluteUri.IndexOf("https", StringComparison.OrdinalIgnoreCase) == 0, userName, virtualDirectoryName, targetUri, targetUriScope)
 {
     this.MailboxServer = ((!string.IsNullOrEmpty(mailboxServerName)) ? ServerIdParameter.Parse(mailboxServerName) : null);
 }