예제 #1
0
 public BasicUndoHistoryTest()
 {
     _context             = new object();
     _basicUndoHistoryRaw = new BasicUndoHistory(_context);
     _basicUndoHistory    = _basicUndoHistoryRaw;
     _factory             = new MockRepository(MockBehavior.Loose);
 }
 private bool TryGetHistory(object context, out IBasicUndoHistory basicUndoHistory)
 {
     return(_map.TryGetValue(context, out basicUndoHistory));
 }
 bool IBasicUndoHistoryRegistry.TryGetBasicUndoHistory(object context, out IBasicUndoHistory basicUndoHistory)
 {
     return(TryGetHistory(context, out basicUndoHistory));
 }
예제 #4
0
 private bool TryGetHistory(object context, out IBasicUndoHistory basicUndoHistory)
 {
     return _map.TryGetValue(context, out basicUndoHistory);
 }
예제 #5
0
 bool IBasicUndoHistoryRegistry.TryGetBasicUndoHistory(object context, out IBasicUndoHistory basicUndoHistory)
 {
     return TryGetHistory(context, out basicUndoHistory);
 }
 public BasicUndoHistoryTest()
 {
     _context             = new object();
     _basicUndoHistoryRaw = new BasicUndoHistory(_context);
     _basicUndoHistory    = _basicUndoHistoryRaw;
 }