Ejemplo n.º 1
0
        public void CreateDataInput_LiteralInputViewModelGiven_IsValue_ShouldCreateInput()
        {
            const string processName = "testProcess";
            const string value       = "test value";

            var vm = new LiteralInputViewModel
            {
                IsReference = false,
                ProcessName = processName,
                Value       = value
            };

            var input = _requestFactory.CreateDataInput(vm);

            input.Identifier.Should().Be(processName);
            input.Data.Should().BeOfType <LiteralDataValue>();
            if (input.Data is LiteralDataValue ldv)
            {
                ldv.Value.Should().Be(value);
            }
        }