Exemplo n.º 1
0
        public void TheRequestContainsListOfAllResults()
        {
            DB_queries a = new DB_queries();

            Assert.IsTrue(Regex.Matches(response.Content.ToString(), "barcode").Count == a.GetAllResultsCountInDB(),
                          " - Expected results: " + a.GetAllResultsCountInDB() + "\n - Response results: " + Regex.Matches(response.Content.ToString(), "barcode").Count);
        }
Exemplo n.º 2
0
        public void ThenDBForPushNotificationsDoesNotContainAnEntryForWithBarcode()
        {
            DB_queries a = new DB_queries();
            bool       isBarcodeEntryDeleted = !a.CheckBarcodeEntry(barcode_workflow_notification);

            Assert.IsTrue(isBarcodeEntryDeleted, $"Barcode entry:'{barcode_workflow_notification}' is still in Push notification DB");
        }
Exemplo n.º 3
0
        public void Clean_db()
        {
            DB_queries a = new DB_queries();

            a.DeleteBarcodeInDB(barcode_id);
            a.UnreleaseResultFromBarcodeInDB(episodeNumber_id);
        }
Exemplo n.º 4
0
        public void GivenCleanUpNotificationWorkflow()
        {
            DB_queries a = new DB_queries();

            a.DeleteBarcodeInDB(barcode_workflow_notification);
            a.DeleteResultFromBarcodeInDB(EpisodeNumber_workflow_notification);
            a.DeleteBarcodeFromPushNotificationDB(barcode_workflow_notification);
            a.CleanupNotificationWorkflowDB(barcode_workflow_notification);
        }
Exemplo n.º 5
0
        public void ThenTheResponseContainsTheCurrentTestTypes()
        {
            DB_queries a      = new DB_queries();
            var        result = a.CheckUserScimId("doctor");

            string[] expected_string_list = new string[] { result["userId"] };
            foreach (var item in expected_string_list)
            {
                bool IsShown = response.Content.Contains(item);
                Assert.IsTrue(IsShown, $"Response content does not contain user's profile info: {item}" +
                              $" \n -Values returned: " + response.Content.ToString());
            }
        }
Exemplo n.º 6
0
        public void Empty_groups_DB()
        {
            DB_queries a = new DB_queries();

            a.EmptyWhatsappGroupsInDB();
        }
Exemplo n.º 7
0
        public void Change_result_barcode_in_DB()
        {
            DB_queries a = new DB_queries();

            a.ChangeResultBarcodeInDB(old_episodeNumber_id, new_episodeNumber_id);
        }
Exemplo n.º 8
0
        public void Complete_first_groups_DB()
        {
            DB_queries a = new DB_queries();

            a.CompleteFirstWhatsappGroupsInDB();
        }
Exemplo n.º 9
0
        public void Unrelease_result_DB()
        {
            DB_queries a = new DB_queries();

            a.UnreleaseResultFromBarcodeInDB(episodeNumber_id);
        }
Exemplo n.º 10
0
        public void Clean_result_DB()
        {
            DB_queries a = new DB_queries();

            a.DeleteResultFromBarcodeInDB("NEW_RESULT_ENDPOINT");
        }
Exemplo n.º 11
0
 public void ThenTheResponseContainsTheDevices(string devices)
 {
     DB_queries a = new DB_queries();
     //Assert.IsTrue(Regex.Matches(response.Content.ToString(), "referenceDate").Count == a.GeResultsByDeviceType(devices),
     //" - Expected results: " + a.GetUnreleasedResultsCountInDB() + "\n - Response results: " + Regex.Matches(response.Content.ToString(), "referenceDate").Count);
 }