Beispiel #1
0
 protected void SetUpOutlook()
 {
     InitStorage();
     _core = new MockPluginEnvironment(_storage);
     _core.RegisterComponentImplementation(typeof(FileResourceManager));
     OutlookSession.Initialize( );
 }
Beispiel #2
0
 [SetUp] public void SetUp()
 {
     _listener = new MAPIListenerStub(null);
     InitStorage();
     _core = new MockPluginEnvironment(_storage);
     OutlookSession.Initialize( );
 }
Beispiel #3
0
        public void LoadTest()
        {
            //MessageBox.Show( "LoadTest" );
            for (int i = 0; i < 10; ++i)
            {
                Tracer._Trace("Test: " + i);
                OutlookSession.Initialize( );

                IEMsgStore msgStore = OutlookSession.GetDefaultMsgStore();
                Assert.IsNotNull(msgStore);
                FolderEnum folderEnum = FolderEnum.SearchForFolders(new string[] { "TasksTest" });
                folderEnum.GetFolderDescriptor("TasksTest");
                OutlookSession.Uninitialize();
            }
        }