public void PreTest() { _moqProductMonitor = MockRepository.GenerateMock<IProductMonitor>(); _moqProductMonitor.Stub(x => x.SelectedVendor).Return(_stubVendor).Repeat.Any(); _testPresenter = new ProductMonitorPresenter(_moqProductMonitor, _moqVendorService, _moqProductUpdateService); }
public ProductMonitorPresenter(IProductMonitor view, IVendorService vendorService, IProductUpdateService productUpdateService) { _view = view; _vendorService = vendorService; _productUpdateService = productUpdateService; Initialize(); }