예제 #1
0
        public void DropdownClosestLobMatch()
        {
            var matchDropdown = new ClosestDropdownSelector.MatchDropdownValue();
            var inputForActivity = new Dictionary<string, object>()
            {
                { "ToBeMatched" , "Liabillity"},
                {"ValuesList",new List<string>{ "Please Select..", "Property.","Liability.","Automobile." } },
                {"FindClosestMatch",true }
            };

            var output = WorkflowInvoker.Invoke(matchDropdown, inputForActivity);

            Assert.AreEqual(output["MatchedItem"], "Liability.");
        }
예제 #2
0
        public void DropdownClosestMatch()
        {
            var matchDropdown = new ClosestDropdownSelector.MatchDropdownValue();
            var inputForActivity = new Dictionary<string, object>()
            {
                { "ToBeMatched" , "Jana"},
                {"ValuesList",new List<string>{ "janarthana", "jane","janak" } },
                {"FindClosestMatch",true }
            };

            var output = WorkflowInvoker.Invoke(matchDropdown, inputForActivity);

            Assert.AreEqual(output["MatchedItem"], "jane");
        }