private IDataKey GetKey(string key, IIndexKey indexes) { var repository = indexes.RepositoryKey; if (!string.IsNullOrEmpty(repository)) { return(SimpleKey.GenerateKey(repository, key)); } return(new ObjectKey(key)); }
public void GenerateKey() { var result = SimpleKey.GenerateKey("Repo", "Test"); Assert.AreEqual("Repo:object:Test", result.FullKey); }