public void GenerateSelfLink_ThrowsArgument_IfUrlHelperIsNull() { EntityInstanceContext context = new EntityInstanceContext(); Assert.ThrowsArgument( () => LinkGenerationHelpers.GenerateSelfLink(context, includeCast: false), "entityContext", "The property 'Url' of EntityInstanceContext cannot be null."); }
public void GenerateSelfLink_ThrowsArgumentNull_EntityContext() { Assert.ThrowsArgumentNull( () => LinkGenerationHelpers.GenerateSelfLink(entityContext: null, includeCast: false), "entityContext"); }