Beispiel #1
0
 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");
 }
Beispiel #2
0
 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");
 }
Beispiel #3
0
 public void Should_throw()
 {
     EntitySource.Invoking(instance => instance.Load(new Iri("test"))).ShouldThrow <NotSupportedException>();
 }
Beispiel #4
0
 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");
 }