//Workflows [Test] public void Start_TM_Using_TM_StartUp_Application_Start() { var nUnitTests_Cassini = new NUnitTests_Cassini_TeamMentor().start(makeTcpRequestToPort: false); nUnitTests_Cassini.use_Temp_Path_XmlDatabase(); var tmProxy = nUnitTests_Cassini.tmProxy(); tmProxy.map_ReferencesToTmObjects().TmFileStorage.assert_Null(); // before call to tmStartUp.Application_Start() should not be set TmFileStorage tmProxy.invoke_Instance(typeof(TM_StartUp), "get_Version").assert_Not_Null(); // this will call the TM_StartUp .ctor() var tmStartUp = tmProxy.get_Current <TM_StartUp>().assert_Not_Null(); // get byRef object of TM_StartUp tmStartUp.Application_Start(); // after this completes we should have a full TM loaded tmProxy.map_ReferencesToTmObjects(); // which means that after remapping the TM object references tmProxy.TmConfig.assert_Not_Null(); // we have native access to the main TM objects :) tmProxy.TmFileStorage.assert_Not_Null(); tmProxy.TmServer.assert_Not_Null(); tmProxy.TmStatus.assert_Not_Null(); tmProxy.TmUserData.assert_Not_Null(); tmProxy.TmXmlDatabase.assert_Not_Null(); tmProxy.TmConfig.assert_Not_Null(); nUnitTests_Cassini.delete_Temp_Path_XmlDatabase(); }