public void Init()
        {
            _uiHelper = new TestUiHelper();
            _browserObject = Substitute.For<IBrowserObject>();
            _browserWindowMock = Substitute.For<IBrowserWindow>();
            _browserWindowBuilder = new TestBrowserWindowsBuilder(_browserWindowMock);

            _browserWindowsManager = new BrowserWindowsManager(_browserObject, _uiHelper, _browserWindowBuilder);
        }
示例#2
0
        public void Init()
        {
            _uiHelper             = new TestUiHelper();
            _browserObject        = Substitute.For <IBrowserObject>();
            _browserWindowMock    = Substitute.For <IBrowserWindow>();
            _browserWindowBuilder = new TestBrowserWindowsBuilder(_browserWindowMock);

            _browserWindowsManager = new BrowserWindowsManager(_browserObject, _uiHelper, _browserWindowBuilder);
        }
示例#3
0
        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;
        }
示例#4
0
        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;
        }