public void AddPrefixWithoutType() { IKeyToParametersConverter converter = CreateConverter(); KeyValueCollection parameters = new KeyValueCollection(); converter.AddWithoutType(parameters, "Source", Int32Key.Create(5, "Product")); converter.AddWithoutType(parameters, "Target", Int32Key.Create(8, "Product")); Assert.AreEqual(2, parameters.Keys.Count()); Assert.AreEqual(5, parameters.Get <int>("SourceID")); Assert.AreEqual(8, parameters.Get <int>("TargetID")); }
public void AddWithoutType() { IKeyToParametersConverter converter = CreateConverter(); KeyValueCollection parameters = new KeyValueCollection(); converter.AddWithoutType(parameters, Int32Key.Create(5, "Product")); Assert.AreEqual(1, parameters.Keys.Count()); Assert.AreEqual(5, parameters.Get <int>("ID")); }