public CreateObserverSetPresenter( ICreateObserverSetView view, ISubPresenterItemManager <IObserverSetItemPresenter> subPresenterItemManager, IDialogCreator dialogCreator, IObjectBaseDTOFactory buildingBlockDTOFactory, IBuildingBlockPropertiesMapper propertiesMapper, IObserverSetFactory observerSetFactory ) : base(view, subPresenterItemManager, ObserverSetItems.All, dialogCreator) { _buildingBlockDTOFactory = buildingBlockDTOFactory; _propertiesMapper = propertiesMapper; _observerSetFactory = observerSetFactory; }
protected override Task Context() { _observerMapper = A.Fake <ObserverMapper>(); _observerSetFactory = A.Fake <IObserverSetFactory>(); _observer = new AmountObserverBuilder(); _observerSet = new ObserverSet { _observer }; _observerSet.Name = "OBS_SET"; _observerSet.Description = "OBS_SET_DESCRIPTION"; sut = new ObserverSetMapper(_observerMapper, _observerSetFactory); _observerSnapshot = new Observer(); A.CallTo(() => _observerMapper.MapToSnapshot(_observer)).Returns(_observerSnapshot); return(_completed); }
public ObserverSetMapper(ObserverMapper observerMapper, IObserverSetFactory observerSetFactory) { _observerMapper = observerMapper; _observerSetFactory = observerSetFactory; }