public void Should_throw_when_no_added_statements_are_given() { EntitySource.Invoking(instance => instance.Commit(DeletedEntities, RetractedStatements, null)) .ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("addedStatements"); }
public void Should_throw_when_no_deleted_entities_are_given() { EntitySource.Invoking(instance => instance.Commit(null, null, null)).ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("deletedEntities"); }
public void Should_throw() { EntitySource.Invoking(instance => instance.Load(new Iri("test"))).ShouldThrow <NotSupportedException>(); }
public void Should_throw_when_no_iri_is_given() { EntitySource.Invoking(instance => instance.Delete(null)).ShouldThrow <ArgumentNullException>(); }
public void Should_throw_when_no_iri_is_given() { EntitySource.Invoking(instance => instance.Create <IProduct>(null)).ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("iri"); }