public void AllowAllRatesAndLossesReportAndExportTest(string type, string datasetDifference)
        {
            loginPage.LoginToApplication();

            var menu = new MenuPage(driver);

            var datasetName = $"{DatasetUserDescription(type)} {datasetDifference}";

            menu.AdministrationMenuLocator.ClickEx(driver);

            menu.DatasetManagementMenuLocator.Click();

            var datasetsPage = new DatasetsPage(driver);

            Utils.WaitUntilLoadingPlaceholderDisappears(driver);

            datasetsPage.SelectDataset(datasetName);

            var datasetsToClientsPage = new DatasetsToClientsPage(driver);

            Utils.WaitUntilLoadingPlaceholderDisappears(driver);

            datasetsToClientsPage.OpenSettingsForClient("Luxoft");

            var clientToDatasetPage = new ClientToDatasetPage(driver);

            clientToDatasetPage.DefaultStoryButtonLocator.WaitForElementPresentAndEnabled(driver);

            clientToDatasetPage.CheckAllowAll(clientToDatasetPage.RatesAllowedReportAllCheckboxLocator);

            clientToDatasetPage.CheckAllowAll(clientToDatasetPage.LossesAllowedReportAllCheckboxLocator);

            Utils.WaitBeforeAssert(driver);

            Assert.Multiple(() =>
            {
                Assert.True(clientToDatasetPage.CheckRates(clientToDatasetPage.CarrierAllowedReportCheckboxLocator), "Check all is not working correctly");
                Assert.True(clientToDatasetPage.CheckLosses(clientToDatasetPage.LossAllowedReportCheckboxLocator), "Check all is not working correctly");
            });
        }
        public void CheckAddedCarriersAndLossesTest(string type, string datasetDifference)
        {
            loginPage.LoginToApplication();

            var menu = new MenuPage(driver);

            var datasetName = $"{DatasetUserDescription(type)} {datasetDifference}";

            menu.AdministrationMenuLocator.ClickEx(driver);

            menu.DatasetManagementMenuLocator.Click();

            var datasetsPage = new DatasetsPage(driver);

            Utils.WaitUntilLoadingPlaceholderDisappears(driver);

            datasetsPage.SelectDataset(datasetName);

            var datasetsToClientsPage = new DatasetsToClientsPage(driver);

            Utils.WaitUntilLoadingPlaceholderDisappears(driver);

            datasetsToClientsPage.OpenSettingsForClient("Luxoft");

            var clientToDatasetPage = new ClientToDatasetPage(driver);

            clientToDatasetPage.DefaultStoryButtonLocator.WaitForElementPresentAndEnabled(driver);

            Assert.Multiple(() =>
            {
                Assert.True(clientToDatasetPage.DefaultStoryButtonLocator.Text.Contains("Default (Default)"), "Dafault story isn`t selected");

                Assert.True(clientToDatasetPage.CarrierIsPresent($"LUXFT-User{randomString}"), $"Carrier LUXFT-User{randomString} isn`t present");
                Assert.True(clientToDatasetPage.CarrierIsPresent($"{adminSharedRates}{randomString} (cur)"), $"Carrier {adminSharedRates}{randomString} (cur) isn`t present");
                Assert.True(clientToDatasetPage.CarrierIsPresent($"{adminClientRates}{randomString}"), $"Carrier {adminClientRates}{randomString} isn`t present");

                Assert.True(clientToDatasetPage.CarrierIsDisabled($"{adminTestRates}{randomString}"), $"Carrier {adminTestRates}{randomString} isn`t disabled");

                Assert.True(clientToDatasetPage.CarrierIsAllowedReport($"LUXFT-User{randomString}"), $"Carrier LUXFT-User{randomString} isn`t allowed to report");
                Assert.True(clientToDatasetPage.CarrierIsAllowedReport($"{adminClientRates}{randomString}"), $"Carrier {adminClientRates}{randomString} isn`t allowed to report");
                Assert.True(!clientToDatasetPage.CarrierIsAllowedReport($"{adminSharedRates}{randomString} (cur)"), $"Carrier {adminSharedRates}{randomString} (cur) is allowed to report");

                Assert.True(clientToDatasetPage.CarrierIsAllowedExport($"LUXFT-User{randomString}"), $"Carrier LUXFT-User{randomString} isn`t allowed to export");
                Assert.True(clientToDatasetPage.CarrierIsAllowedExport($"{adminClientRates}{randomString}"), $"Carrier {adminClientRates}{randomString} isn`t allowed to export");
                Assert.True(!clientToDatasetPage.CarrierIsAllowedExport($"{adminSharedRates}{randomString} (cur)"), $"Carrier {adminSharedRates}{randomString} (cur) is allowed to export");

                Assert.True(clientToDatasetPage.LossIsPresent("LossUser1"), "Loss LossUser1 isn`t present");
                Assert.True(clientToDatasetPage.LossIsPresent(adminClientLosses), $"Loss {adminClientLosses} isn`t present");
                Assert.True(clientToDatasetPage.LossIsPresent($"{adminSharedLosses} (cur)"), $"Loss {adminSharedLosses} (cur) isn`t present");

                Assert.True(clientToDatasetPage.LossIsDisabled(adminTestLosses), $"Loss {adminTestLosses} isn`t disabled");

                Assert.True(clientToDatasetPage.LossIsAllowedReport("LossUser1"), "Loss LossUser1 isn`t allowed to report");
                Assert.True(clientToDatasetPage.LossIsAllowedReport(adminClientLosses), $"Loss {adminClientLosses} isn`t allowed to report");
                Assert.True(!clientToDatasetPage.LossIsAllowedReport($"{adminSharedLosses} (cur)"), $"Loss {adminSharedLosses} (cur) is allowed to report");

                Assert.True(clientToDatasetPage.LossIsAllowedExport("LossUser1"), "Loss LossUser1 isn`t allowed to export");
                Assert.True(clientToDatasetPage.LossIsAllowedExport(adminClientLosses), $"Loss {adminClientLosses} isn`t allowed to export");
                Assert.True(!clientToDatasetPage.LossIsAllowedExport($"{adminSharedLosses} (cur)"), $"Loss {adminSharedLosses} (cur) is allowed to export");
            });
        }