Exemple #1
0
        public async Task Add_RecipientConfiguration_TCP_Message_Host()
        {
            m_recipientConfig = new RecipientConfiguration()
            {
                TemplateToken = "com.axis.recipient.tcp",
                Name          = "TestConfig"
            };

            m_recipientConfig.Parameters.Add("host", VALID_IP);
            m_recipientConfig.Parameters.Add("port", "80");
            m_recipientConfig.Parameters.Add("qos", "");

            ServiceResponse response = await actionService.AddRecipientConfigurationAsync(VALID_IP, VALID_USER, VALID_PASS, m_recipientConfig);

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

            //If successfull => IsSuccess should be true and the config ID should be set
            Assert.IsTrue(response.IsSuccess && m_recipientConfig.ConfigurationID != 0);
        }
Exemple #2
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);
        }