Esempio n. 1
0
 public BoxRouter()
 {
     _driver                   = PropertiesCollection.Driver;
     _boxPageModel             = new BoxPageModel();
     _composePageModel         = new ComposePageModel();
     _inboxPageModel           = new InboxPageModel();
     _settingsRouter           = new SettingsRouter();
     _chooseAnAccountPageModel = new ChooseAnAccountPageModel();
     _forwardingPageModel      = new ForwardingPageModel();
     _filtersPageModel         = new FiltersPageModel();
     _logonRouter              = new LogonRouter();
     _spamPageModel            = new SpamPageModel();
     _addLabelPageModel        = new AddLabelPageModel();
     _myShortcutMenuPageModel  = new MyShortcutMenuPageModel();
 }
        public override void FixtureSetup()
        {
            base.FixtureSetup();

            _logonRouter          = new LogonRouter();
            _boxRouter            = new BoxRouter();
            _composePageModel     = new ComposePageModel();
            _boxPageModel         = new BoxPageModel();
            _themesPageModel      = new ThemesPageModel();
            _settingsRouter       = new SettingsRouter();
            _myShortcutMenuRouter = new MyShortcutMenuRouter();
            _user1 = new User()
            {
                Address = AutomationTestsConstants.UserName1, Password = AutomationTestsConstants.Password
            };
            _user2 = new User()
            {
                Address = AutomationTestsConstants.UserName2, Password = AutomationTestsConstants.Password
            };
            _user3 = new User()
            {
                Address = AutomationTestsConstants.UserName3, Password = AutomationTestsConstants.Password
            };
            _letter1 = new Letter()
            {
                To          = _user1.Address,
                Subject     = AutomationTestsConstants.Subject,
                MessageBody = String.Format(AutomationTestsConstants.MessageText, _user1.Address)
            };
            _letter2 = new Letter()
            {
                To          = _user2.Address,
                Subject     = AutomationTestsConstants.Subject,
                MessageBody = String.Format(AutomationTestsConstants.MessageText, _user2.Address)
            };

            CommonHelper.NavigateGmail();
        }