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."); }
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"); }