public void UriCanBeBuiltWithNamespace() { var builder = new EntityReferenceUrlBuilder(); var uri = builder.BuildEntityReferenceUri("pageName", "entityName", "entityNamespace"); Assert.Equal("/entityNamespace/pageName/entityName", uri.ToString()); }
public void NullPageNameThrows() { var builder = new EntityReferenceUrlBuilder(); Assert.Throws <ArgumentNullException>(() => builder.BuildEntityReferenceUri(null, "entityName", "entityNamespace")); }
public void EmptyEntityNameThrows() { var builder = new EntityReferenceUrlBuilder(); Assert.Throws <ArgumentNullException>(() => builder.BuildEntityReferenceUri("pageName", string.Empty, "entityNamespace")); }