protected override void beforeEach() { _service = MockFor <IViewModifierService>(); _entrySource = MockFor <IViewEntrySource>(); _sourceEntry = MockRepository.GenerateMock <ISparkViewEntry>(); _entryView = MockRepository.GenerateMock <FubuSparkView>(); _serviceView = MockRepository.GenerateMock <IFubuSparkView>(); _sourceEntry.Expect(x => x.CreateInstance()).Return(_entryView); _service.Expect(x => x.Modify(_entryView)).Return(_serviceView); }
public ViewFactory(IViewEntrySource viewEntrySource, IEnumerable<IViewModifier> modifications) { _modifications = modifications; _viewEntrySource = viewEntrySource; }
public ViewFactory(IViewEntrySource viewEntrySource, IViewModifierService <IFubuSparkView> service) { _service = service; _viewEntrySource = viewEntrySource; }
public ViewFactory(IViewEntrySource viewEntrySource, IViewModifierService<IFubuSparkView> service) { _service = service; _viewEntrySource = viewEntrySource; }
public ViewFactory(IViewEntrySource viewEntrySource, IEnumerable <IViewModifier> modifications) { _modifications = modifications; _viewEntrySource = viewEntrySource; }
public ViewFactory(IViewEntrySource viewEntrySource, IViewModifierService service) { _service = service; _viewEntrySource = viewEntrySource; }