static InMemoryUnitOfWork() { Serializer = new JsonObjectSerializer(); WorkingSet = new InMemoryDataStore(); CommittedData = Serializer.Serialize(WorkingSet); }
public void Rollback() { Logger.Warn("Rolling back unit-of-work"); WorkingSet = Serializer.Deserialize <InMemoryDataStore>(CommittedData); }
public InMemoryRepository(InMemoryDataStore dataStore) { logger = LogFactory.BuildLogger(GetType()); this.dataStore = dataStore; identityPropertyInfo = GetIdentityPropertyInformation(); }