protected override void TestInitialize()
        {
            base.TestInitialize();

            // initialize mock client to visit the proxy
            MockClient = new MockClient(System.Net.IPAddress.Parse(EnvironmentConfig.SUTIP));
            ClientCert = new X509Certificate2(EnvironmentConfig.ClientCert, EnvironmentConfig.PfxPassword);

            // make sure the application proxy is deployed
            TestSite.Assert.IsTrue(SutAdapter.IsApplicationProxyConfigured(),
                                   "The Application must be deployed before running this test case.");
        }
        protected override void TestInitialize()
        {
            base.TestInitialize();

            // initialize mock client to visit the proxy
            MockClient = new MockClient(IPAddress.Parse(EnvironmentConfig.SUTIP));

            // make sure there is an application published
            ServerDataModel.SetPublishedEndpoint();

            // make sure the application proxy is deployed
            TestSite.Assert.IsTrue(SutAdapter.IsApplicationProxyConfigured(),
                                   "The Application must be deployed before running this test case.");
        }
        protected override void TestInitialize()
        {
            base.TestInitialize();

            Factory.RegisterRequestHandler <PostProxyPublishSettingsRequestHandler>();
            Factory.RegisterRequestHandler <GetFederationMetadataRequestHandler>();

            // initialize mock client to visit the proxy
            MockClient = new MockClient(IPAddress.Parse(EnvironmentConfig.SUTIP));

            // make sure the application proxy is deployed
            TestSite.Assert.IsTrue(SutAdapter.IsApplicationProxyConfigured(),
                                   "The Application must be deployed before running this test case.");

            // Start ADFS service
            Thread workerThread = new Thread(this.ADFSService);

            workerThread.Start();
        }