public void Create() { var obj = new SynchronizedCacheItemQueryShell("null"); Assert.IsNotNull(obj); Assert.AreEqual("CacheKeyQuery=SynchronizedCacheItemQueryShell&TypeNameQuery=String", obj.ToQuery()); }
public void Create_IQueryShellNavigationObject() { var queryShellNavigationObject = new Mock <IQueryShellNavigationObject>(); queryShellNavigationObject.Setup(o => o.ToQuery()).Returns(() => "IQueryShellNavigationObject_toto"); var obj = new SynchronizedCacheItemQueryShell(queryShellNavigationObject.Object); Assert.IsNotNull(obj); Assert.AreEqual("IQueryShellNavigationObject_toto&CacheKeyQuery=SynchronizedCacheItemQueryShell&TypeNameQuery=IQueryShellNavigationObjectProxy", obj.ToQuery()); }