public void Should_apply_changes_to_underlying_store_when_committing()
        {
            // given
            var aChangeset = new DatasetChanges();
            _entityStore.Setup(store => store.Changes).Returns(aChangeset);
            _entityStore.Setup(store => store.ResetState());

            // when
            _entityContext.Commit();

            // then
            _store.Verify(store => store.ApplyChanges(aChangeset), Times.Once);
        }
 internal DatasetChangesCommandSetConverter(IEnumerable<Triple> currentTriples, Uri metaGraphUri, DatasetChanges datasetChanges)
 {
     _currentTriples = currentTriples;
     _metaGraphUri = metaGraphUri;
     _datasetChanges = datasetChanges;
 }
 /// <summary>One-by-one retracts deleted triples, asserts new triples and updates the meta graph.</summary>
 public void ApplyChanges(DatasetChanges datasetChanges)
 {
     ExecuteCommandSet(new DatasetChangesCommandSetConverter(_store.Triples, MetaGraphUri, datasetChanges).ConvertToSparqlUpdateCommandSet());
 }
Exemplo n.º 4
0
 public void Setup()
 {
     _changes = new DatasetChanges();
 }