示例#1
0
        public async Task Add_RecipientConfiguration_NetworkShare()
        {
            RecipientConfiguration recConfig = new RecipientConfiguration()
            {
                Name          = "NetworkShare",
                TemplateToken = "com.axis.recipient.networkshare",
                Parameters    = new Dictionary <string, string>()
                {
                    { "upload_path", "VIDEO" },
                    { "share_id", "controlledStorage-AzBy" },
                    { "qos", "" }
                }
            };

            ServiceResponse addRecipientResponse = await actionService.AddRecipientConfigurationAsync(VALID_IP, VALID_USER, VALID_PASS, recConfig);

            Console.WriteLine("new recipientconfig id : " + recConfig.ConfigurationID);

            //If successfull => IsSuccess should be true and the config ID should be set
            Assert.IsTrue(addRecipientResponse.IsSuccess && recConfig.ConfigurationID != 0);
        }