public void Save_ShouldDeserializeItem() { var deserializer = Substitute.For <IDeserializer>(); var dataStore = new SitecoreDataStore(deserializer); var item = new FakeItem(); dataStore.Save(item, null); deserializer.Received().Deserialize(item, null); }
public void Save_ShouldDeserializeItem() { var deserializer = Substitute.For<IDeserializer>(); var dataStore = new SitecoreDataStore(deserializer); var item = new FakeItem(); dataStore.Save(item); deserializer.Received().Deserialize(item); }
public OperationStatus(RemoteContentPullArgs args, string operationId) { sw.Start(); _args = args; scDatastore = new SitecoreDataStore(deserializer); this.OperationId = operationId; db = Factory.GetDatabase(args.database); tp = new CMThreadPool(this); Init(); tp.Queue(GetNextItem, _args.id); for (int i = 0; i < ContentMigrationHandler.writerThreads; i++) { RunDatabaseWriterProcess(); } }
public RemoteContentPuller() { scDatastore = new SitecoreDataStore(deserializer); }