예제 #1
0
        public void FunctionDefinitionPage_RunButton()
        {
            FunctionDefinitionPage page = Dashboard.GoToFunctionDefinitionPage(_functionDefinitionId);

            DefinitionSection section = page.DefinitionSection;

            Link runButton = section.RunFunctionLink;

            Assert.True(runButton.IsUserAccesible);
            Assert.Equal("Run function", runButton.Text);
            Assert.Equal(
                Dashboard.BuildFullUrl(RunFunctionPage.ConstructRelativePath(_functionDefinitionId)),
                runButton.Href);
        }
예제 #2
0
        public void SBQueue2SBQueue_VerifyRunFunctionForm()
        {
            RunFunctionPage page = GetRunPage(ServiceBusArgumentsDisplayFunctions.SBQueue2SBQueueMethodInfo);

            Collection <FormElement> parameters = page.GetParameters();

            Assert.Equal(2, parameters.Count);

            FormElement element = parameters[0];

            Assert.Equal("start Enter the queue message body", element.Label);
            Assert.Equal(string.Empty, element.InputValue);

            element = parameters[1];
            Assert.Equal("message Enter the output entity name", element.Label);
            Assert.Equal("servicebus-output1", element.InputValue);
        }
예제 #3
0
        public void SBTopicListener_VerifyRunFunctionForm()
        {
            RunFunctionPage page = GetRunPage(ServiceBusArgumentsDisplayFunctions.SBTopicListenerMethodInfo);

            Collection <FormElement> parameters = page.GetParameters();

            Assert.Equal(2, parameters.Count);

            FormElement element = parameters[0];

            Assert.Equal("message Enter the queue message body", element.Label);
            Assert.Equal(string.Empty, element.InputValue);

            element = parameters[1];
            Assert.Equal("done Enter the output queue name", element.Label);
            Assert.Equal("queue-done", element.InputValue);
        }