public void m_CreateShare_NullShareParams_2param() {
            QApi api = AppTesting.APIlogin( 2 );
            ShareParameters param = new ShareParameters();

            string res = api.CreateShare( param );
            Assert.IsTrue( res == "" );
        }
 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 );
 }
        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 );
        }
 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 );
 }
        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 );
        }
Example #6
0
 /// <summary>
 /// Creates the share action.
 /// </summary>
 /// <param name="request">Web request for share action creating.</param>
 /// <param name="parameters">Share parameters.</param>
 /// <returns>Instance of <see cref="ShareAction"/> class which contains information about new share action </returns>
 public ShareAction CreateShareAction( IQuatrixRequest request, ShareParameters parameters )
 {
     return request.CreateShareAction( parameters );
 }
Example #7
0
 /// <summary>
 /// Creates a share with specified parameters 
 /// </summary>
 /// <param name="api_object">Object which have request data</param>
 /// <param name="parameters">Share parameters</param>
 /// <returns>Link to downloading shared files </returns>
 public string CreateShare( IQuatrixRequest request, ShareParameters parameters )
 {
     return request.CreateShare( parameters );
 }