Beispiel #1
0
        public void WhenIGoToWorkplaceICheckThatTerminalNumberExists(string workplace, int terminal)
        {
            BDMainPage BDMain = new BDMainPage();

            BDMain.OpenWorkplaceWithName(workplace);
            TerminalSettingPage TSettings = new TerminalSettingPage();

            IsTrue(BDMain.AssertWorkplaceWithName(workplace), $"Что-то пошло не так, на странице не отображается заголовок {workplace}");
            MSDatabaseConnector _msBDConnector = new MSDatabaseConnector(Config.MSDbBatchDropperStab);
            string command = $@"select [Name] FROM [BatchDropperStab].[dbo].[Terminals] where id={terminal}";
            var    name    = _msBDConnector.QueryExecutorScalar(command);

            IsTrue(TSettings.AssertLinkWitnThisTerminalName(name), $"Что-то пошло не так, терминал {terminal} c именем {name} не выбран");
        }