public HistoryManagerPersistor(IHistoryItemToHistoryItemMetaDataMapper historyItemMetaDataMapper, IHistoryItemMetaDataToHistoryItemMapper historyItemMapper, IHistoryManagerFactory historyManagerFactory, IHistoryItemMetaDataRepository historyItemMetaDataRepository) { _historyItemMetaDataMapper = historyItemMetaDataMapper; _historyItemMapper = historyItemMapper; _historyManagerFactory = historyManagerFactory; _historyItemMetaDataRepository = historyItemMetaDataRepository; }
protected override void Context() { _historyItemMetaDataRepository = A.Fake <IHistoryItemMetaDataRepository>(); _historyManagerFactory = A.Fake <IHistoryManagerFactory>(); _historyItemMetaDataToHistoryItemMapper = A.Fake <IHistoryItemMetaDataToHistoryItemMapper>(); _historyItemToHistoryItemMetaDataMapper = A.Fake <IHistoryItemToHistoryItemMetaDataMapper>(); sut = new HistoryManagerPersistor(_historyItemToHistoryItemMetaDataMapper, _historyItemMetaDataToHistoryItemMapper, _historyManagerFactory, _historyItemMetaDataRepository); }