public void ShouldReturnUriTemplateValueForRegisteredClass() { var uriFactory = new UriFactory(); uriFactory.Register<Monster>(); Assert.AreEqual("{id}", uriFactory.GetUriTemplateValue<Monster>()); }
public void ThrowsExceptionIfTryingToGetUriTemplateValueForEntryWithoutRegisteredType() { var uriFactory = new UriFactory(); uriFactory.GetUriTemplateValue<Monster>(); }