public T Get <TId>(TId id) { var uri = _uriFactory.GetItemUri(_name, id); var result = _httpService.Get <T>(uri); return(result); }
public void GetItemUri_TypeNameArgumentAndGuidId_UsesTypeNameAsResourceName() { var id = Guid.NewGuid(); var typeName = typeof(int).Name; var uri = _uriFactory.GetItemUri(typeName, id); Assert.That(uri.ToString(), Is.EqualTo(String.Format("{0}{1}/{2}", Url, typeName, id))); }