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); }
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"); }
public void Clean_db() { DB_queries a = new DB_queries(); a.DeleteBarcodeInDB(barcode_id); a.UnreleaseResultFromBarcodeInDB(episodeNumber_id); }
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); }
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()); } }
public void Empty_groups_DB() { DB_queries a = new DB_queries(); a.EmptyWhatsappGroupsInDB(); }
public void Change_result_barcode_in_DB() { DB_queries a = new DB_queries(); a.ChangeResultBarcodeInDB(old_episodeNumber_id, new_episodeNumber_id); }
public void Complete_first_groups_DB() { DB_queries a = new DB_queries(); a.CompleteFirstWhatsappGroupsInDB(); }
public void Unrelease_result_DB() { DB_queries a = new DB_queries(); a.UnreleaseResultFromBarcodeInDB(episodeNumber_id); }
public void Clean_result_DB() { DB_queries a = new DB_queries(); a.DeleteResultFromBarcodeInDB("NEW_RESULT_ENDPOINT"); }
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); }