コード例 #1
0
 public void GetCacheKeyNamespaceTest()
 {
     var obj = new TestContainerBag1() as IBaseContainerBag;//使用接口或基类
     var result = ContainerHelper.GetCacheKeyNamespace(obj.GetType());
     Console.WriteLine(result);
     Assert.AreEqual("Container:Senparc.Weixin.Containers.Tests.TestContainerBag1", result);
 }