public static void InitializeProvider(TestContext testContext)
        {
            exchangeServiceProvider = new ExchangeServiceProviderSimulator(ServiceUrl, new NetworkCredential());

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

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

            //AddMailToMailThread(
            //    conversationSubject: FirstConversationSubject,
            //    body: FirstConversationSecondEmailContent);
        }
Exemple #2
0
        public static void InitializeProvider(TestContext testContext)
        {
            exchangeServiceProvider = new ExchangeServiceProviderSimulator(ServiceUrl, new NetworkCredential());

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

            // Create a test conversation with two emails
            var testclass = new ExchangeServiceProviderSimulatorTests();

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

            //AddMailToMailThread(
            //    conversationSubject: FirstConversationSubject,
            //    body: FirstConversationSecondEmailContent);
        }