public void Must_not_update_meta_graph_with_blank_entity_id() { // given var entity = EntityContext.Create <IAgent>("http://magi/people/Tomasz"); var someAgent = EntityContext.Create <IAgent>(entity.CreateBlankId()); entity.KnowsOne = someAgent; EntityContext.Commit(); // when someAgent.Gender = "male"; EntityContext.Commit(); // then MetagraphTripleCount.Should().Be(1); }
private void AssertStoreCounts(int dataQuadsCount, int metagraphQuads) { EntityContext.Store.Quads.Should().HaveCount(dataQuadsCount, "that's how many quads internal store should contain"); MetagraphTripleCount.Should().Be(metagraphQuads, "that's how many quads meta graph should contain"); AllTriplesCount.Should().Be(metagraphQuads + dataQuadsCount, "that's how many quads external store should contain"); }