protected void SetUpOutlook() { InitStorage(); _core = new MockPluginEnvironment(_storage); _core.RegisterComponentImplementation(typeof(FileResourceManager)); OutlookSession.Initialize( ); }
[SetUp] public void SetUp() { _listener = new MAPIListenerStub(null); InitStorage(); _core = new MockPluginEnvironment(_storage); OutlookSession.Initialize( ); }
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(); } }