예제 #1
0
        public void m_InitMain_corr() {
            QApi api = AppTesting.APIlogin( 2 );
            ShareParameters param = new ShareParameters();
            IEnumerable<Metadata> files = api.RootMeatadata.ChildMetadata;
            bool inited = param.InitMain( api.Profile, api.RootMeatadata, files, api.Contats );

            Assert.IsTrue( inited );
        }
예제 #2
0
 public void m_CreateShare_2param() {
     QApi api = AppTesting.APIlogin( 2 );
     ShareParameters param = new ShareParameters();
     IEnumerable<Metadata> files = api.RootMeatadata.ChildMetadata;
     param.InitMain( api.Profile, api.RootMeatadata, files, api.Contats );
     string res = api.CreateShare( param );
     Assert.IsNotNull( res );
 }
예제 #3
0
 public void m_GetShareFiles() {
     QApi api = AppTesting.APIlogin( 2 );
     ShareParameters param = new ShareParameters();
     IEnumerable<Metadata> files = api.RootMeatadata.ChildMetadata;
     param.InitMain( api.Profile, api.RootMeatadata, files, api.Contats );
     ShareAction act = api.CreateShareAction( param );
     IEnumerable<ShareFile> res = act.GetShareFiles();
     Assert.IsNotNull( res );
 }
예제 #4
0
        public void m_CreateShareAction_5ShareActionsOneFromAnother() {
            QApi api = AppTesting.APIlogin( 2 );
            ShareParameters param = new ShareParameters();
            IEnumerable<Metadata> files = api.RootMeatadata.ChildMetadata;
            param.InitMain( api.Profile, api.RootMeatadata, files, api.Contats );
            ShareAction act = api.CreateShareAction( param );
                //.CreateShareAction( param )
                //.CreateShareAction( param )
                //.CreateShareAction( param )
                //.CreateShareAction( param );

            Assert.IsNotNull( act );
        }