public static void InitializeProvider(TestContext testContext)
        {
            var serviceEndpoint = Environment.GetEnvironmentVariable("SupaExchangeServiceProviderServiceUrl");

            if (string.IsNullOrEmpty(serviceEndpoint))
            {
                Assert.Inconclusive("SupaExchangeServiceProviderServiceUrl is not set. Please set it to an exchange endpoint. E.g. https://outlook.office365.com/EWS/Exchange.asmx");
            }

            if (string.IsNullOrEmpty(TestUser))
            {
                Assert.Inconclusive("SupaExchangeServiceProviderTestUser is not set. Please set it to the username for exchange endpoint.");
            }

            if (string.IsNullOrEmpty(TestUserPassword))
            {
                Assert.Inconclusive("SupaExchangeServiceProviderTestPassword is not set. Please set it to the password for exchange endpoint.");
            }

            var serviceUrl = new Uri(serviceEndpoint);
            var credential = new NetworkCredential(TestUser, TestUserPassword);

            exchangeServiceProvider = new ExchangeServiceProvider(serviceUrl, credential);

            exchangeService = new ExchangeService(ExchangeVersion.Exchange2013)
            {
                Credentials  = credential,
                TraceEnabled = false,
                TraceFlags   = TraceFlags.All,
                Url          = serviceUrl
            };

            // Create default test folders
            testFolder = exchangeServiceProvider.GetMailFolder(TestFolder, true);

            // Create a test conversation with two emails
            var testClass = new ExchangeServiceProviderTests();

            testClass.CreateMailThreadInTestFolder(
                subject: FirstConversationSubject,
                body: FirstConversationContent,
                recipients: TestUser);

            // AddMailToMailThread(
            // conversationSubject: ExchangeServiceProviderTestsBase.FirstConversationSubject,
            // messageContent: ExchangeServiceProviderTestsBase.FirstConversationSecondEmailContent);
        }
        public static void InitializeProvider(TestContext testContext)
        {
            var serviceEndpoint = Environment.GetEnvironmentVariable("SupaExchangeServiceProviderServiceUrl");
            if (string.IsNullOrEmpty(serviceEndpoint))
            {
                Assert.Inconclusive("SupaExchangeServiceProviderServiceUrl is not set. Please set it to an exchange endpoint. E.g. https://outlook.office365.com/EWS/Exchange.asmx");
            }

            if (string.IsNullOrEmpty(TestUser))
            {
                Assert.Inconclusive("SupaExchangeServiceProviderTestUser is not set. Please set it to the username for exchange endpoint.");
            }

            if (string.IsNullOrEmpty(TestUserPassword))
            {
                Assert.Inconclusive("SupaExchangeServiceProviderTestPassword is not set. Please set it to the password for exchange endpoint.");
            }

            var serviceUrl = new Uri(serviceEndpoint);
            var credential = new NetworkCredential(TestUser, TestUserPassword);
            exchangeServiceProvider = new ExchangeServiceProvider(serviceUrl, credential);

            exchangeService = new ExchangeService(ExchangeVersion.Exchange2013)
                                  {
                                      Credentials = credential,
                                      TraceEnabled = false,
                                      TraceFlags = TraceFlags.All,
                                      Url = serviceUrl
                                  };

            // Create default test folders
            testFolder = exchangeServiceProvider.GetMailFolder(TestFolder, true);

            // Create a test conversation with two emails
            var testClass = new ExchangeServiceProviderTests();
            testClass.CreateMailThreadInTestFolder(
                subject: FirstConversationSubject,
                body: FirstConversationContent,
                recipients: TestUser);

            // AddMailToMailThread(
            // conversationSubject: ExchangeServiceProviderTestsBase.FirstConversationSubject,
            // messageContent: ExchangeServiceProviderTestsBase.FirstConversationSecondEmailContent);
        }