public void GenerateTest() { var c = new ClassForKey { Id = 1000 }; var kg = new PropertyKeyGenerator("Id"); var k = kg.Generate(c); Assert.AreEqual("classforkeyid:1000", k.ToString()); }
public void GenerateTest2() { var c = new ClassForKey { Uid = 1000 }; var kg = new PropertyKeyGenerator("Uid"); var k = kg.Generate(c); Assert.AreEqual("uid:1000", k.ToString()); }
public void PropertyKeyGeneratorTest() { var c = new ClassForKey { Email = "john.smith@awesome" }; var kg = new PropertyKeyGenerator("Email"); var k = kg.Generate(c); Assert.AreEqual("email:john.smith@awesome", k.ToString()); }