public void Init() { _uiHelper = new TestUiHelper(); _browserObject = Substitute.For<IBrowserObject>(); _browserWindowMock = Substitute.For<IBrowserWindow>(); _browserWindowBuilder = new TestBrowserWindowsBuilder(_browserWindowMock); _browserWindowsManager = new BrowserWindowsManager(_browserObject, _uiHelper, _browserWindowBuilder); }
public void Init() { _uiHelper = new TestUiHelper(); _browserObject = Substitute.For <IBrowserObject>(); _browserWindowMock = Substitute.For <IBrowserWindow>(); _browserWindowBuilder = new TestBrowserWindowsBuilder(_browserWindowMock); _browserWindowsManager = new BrowserWindowsManager(_browserObject, _uiHelper, _browserWindowBuilder); }
public BrowserWindowsManager(IBrowserObject browserObject, IUiHelper uiHelper, IBrowserWindowsBuilder<IBrowserWindow> browserWindowsBuilder) { if (browserObject == null) { throw new ArgumentNullException("browserObject"); } if (uiHelper == null) { throw new ArgumentNullException("uiHelper"); } _browserObject = browserObject; _uiHelper = uiHelper; _browserWindowsBuilder = browserWindowsBuilder; }
public BrowserWindowsManager(IBrowserObject browserObject, IUiHelper uiHelper, IBrowserWindowsBuilder <IBrowserWindow> browserWindowsBuilder) { if (browserObject == null) { throw new ArgumentNullException("browserObject"); } if (uiHelper == null) { throw new ArgumentNullException("uiHelper"); } _browserObject = browserObject; _uiHelper = uiHelper; _browserWindowsBuilder = browserWindowsBuilder; }