From 3ba28912287ce9e6a00e26c6b652181290dc2dd0 Mon Sep 17 00:00:00 2001 From: Cathinka Walberg Date: Tue, 14 May 2019 10:11:43 +0200 Subject: [PATCH 1/2] Rename policies.spec top folders for Reporting --- ...ents_containing_aggregated_case_reports.cs | 5 +-- ...ggregated_case_report_separated_by_hash.cs | 9 ++---- .../when_it_is_a_valid_report.cs | 7 ++--- .../when_report_has_a_negative_health_risk.cs | 7 ++--- ...ative_number_of_cases_of_females_over_5.cs | 7 ++--- ...tive_number_of_cases_of_females_under_5.cs | 7 ++--- ...egative_number_of_cases_of_males_over_5.cs | 7 ++--- ...gative_number_of_cases_of_males_under_5.cs | 7 ++--- ...has_an_invalid_value_for_females_over_5.cs | 7 ++--- ...as_an_invalid_value_for_females_under_5.cs | 7 ++--- ...rt_has_an_invalid_value_for_health_risk.cs | 7 ++--- ...t_has_an_invalid_value_for_males_over_5.cs | 7 ++--- ..._has_an_invalid_value_for_males_under_5.cs | 7 ++--- ...ggregated_case_report_separated_by_star.cs | 9 ++---- .../when_it_is_a_valid_report.cs | 7 ++--- .../when_report_has_a_negative_health_risk.cs | 7 ++--- ...ative_number_of_cases_of_females_over_5.cs | 7 ++--- ...tive_number_of_cases_of_females_under_5.cs | 7 ++--- ...egative_number_of_cases_of_males_over_5.cs | 7 ++--- ...gative_number_of_cases_of_males_under_5.cs | 7 ++--- ...has_an_invalid_value_for_females_over_5.cs | 7 ++--- ...as_an_invalid_value_for_females_under_5.cs | 7 ++--- ...rt_has_an_invalid_value_for_health_risk.cs | 7 ++--- ...t_has_an_invalid_value_for_males_over_5.cs | 7 ++--- ..._has_an_invalid_value_for_males_under_5.cs | 7 ++--- ..._case_report_separated_by_star_and_hash.cs | 9 ++---- .../when_it_is_a_valid_report.cs | 7 ++--- .../when_report_has_a_negative_health_risk.cs | 7 ++--- ...ative_number_of_cases_of_females_over_5.cs | 7 ++--- ...tive_number_of_cases_of_females_under_5.cs | 7 ++--- ...egative_number_of_cases_of_males_over_5.cs | 7 ++--- ...gative_number_of_cases_of_males_under_5.cs | 7 ++--- ...has_an_invalid_value_for_females_over_5.cs | 7 ++--- ...as_an_invalid_value_for_females_under_5.cs | 7 ++--- ...rt_has_an_invalid_value_for_health_risk.cs | 7 ++--- ...t_has_an_invalid_value_for_males_over_5.cs | 7 ++--- ..._has_an_invalid_value_for_males_under_5.cs | 7 ++--- ...received_builder_for_single_case_report.cs | 5 +-- ...or_single_case_report_separated_by_hash.cs | 9 ++---- .../when_report_has_a_negative_age_group.cs} | 9 +++--- .../when_report_has_a_negative_health_risk.cs | 7 ++--- .../when_report_has_a_negative_sex.cs | 7 ++--- ...port_has_an_invalid_value_for_age_group.cs | 7 ++--- ...rt_has_an_invalid_value_for_health_risk.cs | 7 ++--- ...hen_report_has_an_invalid_value_for_sex.cs | 7 ++--- ...has_an_out_of_range_value_for_age_group.cs | 7 ++--- ...eport_has_an_out_of_range_value_for_sex.cs | 7 ++--- .../when_report_is_of_a_man_over_5.cs | 7 ++--- .../when_report_is_of_a_man_under_5.cs | 7 ++--- .../when_report_is_of_a_woman_over_5.cs | 7 ++--- .../when_report_is_of_a_woman_under_5.cs | 7 ++--- ...or_single_case_report_separated_by_star.cs | 9 ++---- .../when_report_has_a_negative_age_group.cs} | 9 +++--- .../when_report_has_a_negative_health_risk.cs | 7 ++--- .../when_report_has_a_negative_sex.cs | 30 ++++++++++++++++++ ...port_has_an_invalid_value_for_age_group.cs | 7 ++--- ...rt_has_an_invalid_value_for_health_risk.cs | 7 ++--- ...hen_report_has_an_invalid_value_for_sex.cs | 7 ++--- ...has_an_out_of_range_value_for_age_group.cs | 7 ++--- ...eport_has_an_out_of_range_value_for_sex.cs | 7 ++--- .../when_report_is_of_a_man_over_5.cs | 7 ++--- .../when_report_is_of_a_man_under_5.cs | 7 ++--- .../when_report_is_of_a_woman_over_5.cs | 7 ++--- .../when_report_is_of_a_woman_under_5.cs | 7 ++--- ..._case_report_separated_by_star_and_hash.cs | 9 ++---- .../when_report_has_a_negative_age_group.cs | 7 ++--- .../when_report_has_a_negative_health_risk.cs | 7 ++--- .../when_report_has_a_negative_sex.cs | 30 ++++++++++++++++++ ...port_has_an_invalid_value_for_age_group.cs | 7 ++--- ...rt_has_an_invalid_value_for_health_risk.cs | 7 ++--- ...hen_report_has_an_invalid_value_for_sex.cs | 7 ++--- ...has_an_out_of_range_value_for_age_group.cs | 7 ++--- ...eport_has_an_out_of_range_value_for_sex.cs | 7 ++--- .../when_report_is_of_a_man_over_5.cs | 7 ++--- .../when_report_is_of_a_man_under_5.cs | 7 ++--- .../when_report_is_of_a_woman_over_5.cs | 7 ++--- .../when_report_is_of_a_woman_under_5.cs | 7 ++--- .../when_report_has_a_negative_age_group.cs | 31 ------------------- .../when_report_has_a_negative_age_group.cs | 31 ------------------- 79 files changed, 283 insertions(+), 376 deletions(-) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/given/text_message_received_events_containing_aggregated_case_reports.cs (97%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_hash/when_it_is_a_valid_report.cs (88%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_a_negative_health_risk.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_a_negative_number_of_cases_of_females_over_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_a_negative_number_of_cases_of_females_under_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_a_negative_number_of_cases_of_males_under_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_an_invalid_value_for_females_over_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_an_invalid_value_for_females_under_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash}/when_report_has_an_invalid_value_for_males_over_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star/when_it_is_a_valid_report.cs (88%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star}/when_report_has_a_negative_health_risk.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star}/when_report_has_a_negative_number_of_cases_of_females_over_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star}/when_report_has_a_negative_number_of_cases_of_males_under_5.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star}/when_report_has_an_invalid_value_for_females_over_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star}/when_report_has_an_invalid_value_for_females_under_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star}/when_report_has_an_invalid_value_for_males_over_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs (85%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/when_it_is_a_valid_report.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs (80%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash}/when_report_has_a_negative_number_of_cases_of_females_over_5.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash}/when_report_has_a_negative_number_of_cases_of_females_under_5.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash}/when_report_has_a_negative_number_of_cases_of_males_under_5.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash}/when_report_has_an_invalid_value_for_females_over_5.cs (80%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash => when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash}/when_report_has_an_invalid_value_for_females_under_5.cs (80%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs (80%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs (80%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report => when_parsing_a_correctly_formated_aggregated_case_report_sms}/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs (80%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/given/a_text_message_received_builder_for_single_case_report.cs (97%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs (85%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_sex.cs => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs} (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/when_report_has_a_negative_health_risk.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash}/when_report_has_a_negative_sex.cs (82%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash}/when_report_has_an_invalid_value_for_sex.cs (79%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs (85%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash}/when_report_is_of_a_man_over_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash}/when_report_is_of_a_man_under_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_hash/when_report_is_of_a_woman_over_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash}/when_report_is_of_a_woman_under_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs (85%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_sex.cs => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs} (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star}/when_report_has_a_negative_health_risk.cs (82%) create mode 100644 Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star}/when_report_has_an_invalid_value_for_age_group.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star}/when_report_has_an_invalid_value_for_sex.cs (79%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs (85%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star/when_report_is_of_a_man_over_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star}/when_report_is_of_a_man_under_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star}/when_report_is_of_a_woman_over_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star}/when_report_is_of_a_woman_under_5.cs (87%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs (83%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_has_a_negative_age_group.cs (81%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_has_a_negative_health_risk.cs (81%) create mode 100644 Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_has_an_invalid_value_for_age_group.cs (81%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs (81%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_has_an_invalid_value_for_sex.cs (78%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs (85%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs (84%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_is_of_a_man_over_5.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_is_of_a_man_under_5.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star => when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash}/when_report_is_of_a_woman_over_5.cs (86%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/{when_parsing_a_text_message_with_a_correctly_formated_single_case_report => when_parsing_a_correctly_formated_single_case_report_sms}/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs (86%) delete mode 100644 Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_age_group.cs delete mode 100644 Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/given/text_message_received_events_containing_aggregated_case_reports.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/given/text_message_received_events_containing_aggregated_case_reports.cs similarity index 97% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/given/text_message_received_events_containing_aggregated_case_reports.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/given/text_message_received_events_containing_aggregated_case_reports.cs index a88a62b46..96de30cd2 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/given/text_message_received_events_containing_aggregated_case_reports.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/given/text_message_received_events_containing_aggregated_case_reports.cs @@ -3,12 +3,9 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.given { public class text_message_received_events_containing_aggregated_case_reports : Policies.Specs.Reporting.for_notifications.given.text_message_received_events { diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs index 986218289..e7614974c 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs @@ -3,15 +3,12 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given { - public class text_message_received_events_containing_aggregated_case_report_separated_by_hash : Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report. - given.text_message_received_events_containing_aggregated_case_reports + public class text_message_received_events_containing_aggregated_case_report_separated_by_hash : text_message_received_events_containing_aggregated_case_reports { static readonly char separator = '#'; protected static TextMessageReceived valid_text_message_received(int males_under_5, int males_over_5, int females_under_5, int females_over_5 ) => valid_text_message_received(males_under_5, males_over_5, females_under_5, females_over_5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_it_is_a_valid_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs similarity index 88% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_it_is_a_valid_report.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs index 62223265d..838658d6a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_it_is_a_valid_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_it_is_a_valid_report : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly int cases_of_male_under_5 = 0; static readonly int cases_of_male_over_5 = 1; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs index 6c82aa798..8bf38e485 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs index 1eda815f9..58e57975a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs index 556d8226c..2f2ec5877 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs index e8a56bc01..f46791b57 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs index e98135c3a..ce58d9015 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs index 9df9e1a7f..d58de3c14 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs index 445c609e0..303e0e0b5 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs index 9e9bc9ce5..dbb5e62ae 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_health_risk : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs index 0cf0e73ab..78b4414a3 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs index 42e4f628d..bca691df9 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs index 6335aaafd..ed33d83af 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs @@ -3,15 +3,12 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given { - public class text_message_received_events_containing_aggregated_case_report_separated_by_star : Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report. - given.text_message_received_events_containing_aggregated_case_reports + public class text_message_received_events_containing_aggregated_case_report_separated_by_star : text_message_received_events_containing_aggregated_case_reports { static readonly char separator = '*'; protected static TextMessageReceived valid_text_message_received(int males_under_5, int males_over_5, int females_under_5, int females_over_5 ) => valid_text_message_received(males_under_5, males_over_5, females_under_5, females_over_5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_it_is_a_valid_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs similarity index 88% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_it_is_a_valid_report.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs index e8add22db..e99842045 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_it_is_a_valid_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_it_is_a_valid_report : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly int cases_of_male_under_5 = 0; static readonly int cases_of_male_over_5 = 1; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs index 7142ccb98..8c16e7063 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs index b52a7ce9e..57ac9edba 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs index 9e9922cb9..d1390e871 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs index b1ea38843..0d571e8ac 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs index 0963db038..8969748ce 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs index e0798b4ed..1803fec96 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs index c150d8f95..a0df94350 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs index 10e453aaf..eba962262 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_health_risk : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs index 0a0179ba6..66cd80ade 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs index 6baf54596..c375fc591 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs similarity index 85% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs index 9afedc80c..4f3ae8086 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs @@ -3,15 +3,12 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given { - public class text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash : Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report. - given.text_message_received_events_containing_aggregated_case_reports + public class text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash : text_message_received_events_containing_aggregated_case_reports { static readonly char? separator = null; protected static TextMessageReceived valid_text_message_received(int males_under_5, int males_over_5, int females_under_5, int females_over_5 ) => valid_text_message_received(males_under_5, males_over_5, females_under_5, females_over_5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_it_is_a_valid_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_it_is_a_valid_report.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs index b0dc046c3..906b95605 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_it_is_a_valid_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_it_is_a_valid_report : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly int cases_of_male_under_5 = 0; static readonly int cases_of_male_over_5 = 1; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs similarity index 80% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs index 46718de4b..1b7cf96f0 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs index cb525aaf1..7bd38d970 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs index b73f804f2..15bd6cfa8 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs index 953c21b36..a0c8be72e 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs index bcc9e1542..9163bb338 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs similarity index 80% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs index 0df5a3ec2..a93b00c6d 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs similarity index 80% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs index 115abaf32..e6916dda2 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs similarity index 80% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs index abf1ab27b..4b94dfc4b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_health_risk : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs similarity index 80% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs index a28e87d24..7a4fbf793 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_over_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs similarity index 80% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs index 7a17a00f9..fc175509c 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_aggregated_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_under_5 : given.text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/given/a_text_message_received_builder_for_single_case_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/given/a_text_message_received_builder_for_single_case_report.cs similarity index 97% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/given/a_text_message_received_builder_for_single_case_report.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/given/a_text_message_received_builder_for_single_case_report.cs index 777b68688..2f58d96fc 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/given/a_text_message_received_builder_for_single_case_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/given/a_text_message_received_builder_for_single_case_report.cs @@ -3,12 +3,9 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.given { public class a_text_message_received_builder_for_single_case_report : Policies.Specs.Reporting.for_notifications.given.text_message_received_events { diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs similarity index 85% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs index 4333c547b..93124d156 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs @@ -3,15 +3,12 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given { - public class a_text_message_received_builder_for_single_case_report_separated_by_hash : Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report. - given.a_text_message_received_builder_for_single_case_report + public class a_text_message_received_builder_for_single_case_report_separated_by_hash : a_text_message_received_builder_for_single_case_report { static readonly char separator = '#'; protected static TextMessageReceived valid_text_message_received(bool woman, bool under5) => valid_text_message_received(woman, under5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs index e48ba1eae..d297e4f17 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs @@ -3,21 +3,20 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; static NotificationParsingResult result; - Establish context = () => received_text_message = text_message_received_with_negative_sex(false); + Establish context = () => received_text_message = text_message_received_with_negative_age_group(false); Because of = () => result = parser.Parse(received_text_message); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs index e3324ba68..c0e9d2840 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs index d33bd1e33..c70a99352 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs index 4c7ce1e83..4d77a58db 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs index 22375c8f0..a358eef64 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_health_risk : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs similarity index 79% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs index ce5c909ae..473b5adb8 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs index 9b82a07e4..5492c8e07 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs similarity index 85% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs index aabd73aae..da07f3cfa 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs index 0fef51090..2c37023a1 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_man_over_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly bool is_female = false; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs index 673d30df6..bdbd89da1 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_man_under_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly bool is_female = false; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_woman_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_woman_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs index 860d9cc97..1265b4287 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_woman_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_over_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly bool is_female = true; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_woman_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_woman_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs index bd23f6ec6..fe4f4dbbe 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_woman_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_under_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash { static readonly bool is_female = true; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs similarity index 85% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs index 00e56c2e2..7a14da606 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs @@ -3,15 +3,12 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given { - public class a_text_message_received_builder_for_single_case_report_separated_by_star : Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report. - given.a_text_message_received_builder_for_single_case_report + public class a_text_message_received_builder_for_single_case_report_separated_by_star : a_text_message_received_builder_for_single_case_report { static readonly char separator = '*'; protected static TextMessageReceived valid_text_message_received(bool woman, bool under5) => valid_text_message_received(woman, under5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs index 3c9f9fcfa..af1fafc24 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs @@ -3,21 +3,20 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; static NotificationParsingResult result; - Establish context = () => received_text_message = text_message_received_with_negative_sex(false); + Establish context = () => received_text_message = text_message_received_with_negative_age_group(false); Because of = () => result = parser.Parse(received_text_message); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs similarity index 82% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs index 287b61195..0bb56fe61 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs new file mode 100644 index 000000000..aa90dfcd7 --- /dev/null +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) The International Federation of Red Cross and Red Crescent Societies. All rights reserved. + * Licensed under the MIT License. See LICENSE in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using Events.NotificationGateway.Reporting.SMS; +using Machine.Specifications; +using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; + +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star +{ + [Subject("Notification")] + public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report_separated_by_star + { + static readonly NotificationParser parser = new NotificationParser(); + static TextMessageReceived received_text_message; + static NotificationParsingResult result; + Establish context = () => received_text_message = text_message_received_with_negative_sex(false); + + Because of = () => result = parser.Parse(received_text_message); + + It should_not_be_a_valid_case_report = () => result.IsValid.ShouldBeFalse(); + It should_have_two_error_messages = () => result.ErrorMessages.Count.ShouldEqual(2); + It should_be_a_valid_format = () => result.IsInvalidFormat.ShouldBeFalse(); + It should_a_human_case_report = () => result.IsNonHumanCaseReport.ShouldBeFalse(); + It should_be_a_single_case_report = () => result.IsSingleCaseReport.ShouldBeTrue(); + It should_not_be_a_multiple_case_report = () => result.IsMultipleCaseReport.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs index b1d054e37..f880971be 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs index 88c4d93a9..ed6266595 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_health_risk : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs similarity index 79% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs index 754aa4220..58f60987a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs index 74a87a6ee..21c8e4e48 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs similarity index 85% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs index d5a86c010..861bc20c7 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_man_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_man_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs index 969bf4d9c..6e9940f36 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_man_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_man_over_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly bool is_female = false; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_man_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_man_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs index 1b6a328f3..77be019b1 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_man_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_man_under_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly bool is_female = false; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs index 5f8b05898..6dc6fa02a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_woman_over_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly bool is_female = true; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_woman_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs similarity index 87% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_woman_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs index 8d21fc5af..6ba9c019b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_woman_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_woman_under_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star { static readonly bool is_female = true; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs similarity index 83% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs index fe9bad6cd..caab72603 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs @@ -3,15 +3,12 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; -using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash.given +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given { - public class a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash : Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report. - given.a_text_message_received_builder_for_single_case_report + public class a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash : a_text_message_received_builder_for_single_case_report { protected static TextMessageReceived valid_text_message_received(bool woman, bool under5) => valid_text_message_received(woman, under5, null); protected static TextMessageReceived text_message_received_with_invalid_health_risk_id(bool woman, bool under5) => text_message_received_with_invalid_health_risk_id(woman, under5, null); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs similarity index 81% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs index 8fe6fb5c9..8c6a058b2 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs similarity index 81% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs index 4897245b3..91f1d4546 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs new file mode 100644 index 000000000..abddfe16b --- /dev/null +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) The International Federation of Red Cross and Red Crescent Societies. All rights reserved. + * Licensed under the MIT License. See LICENSE in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using Events.NotificationGateway.Reporting.SMS; +using Machine.Specifications; +using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; + +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash +{ + [Subject("Notification")] + public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + { + static readonly NotificationParser parser = new NotificationParser(); + static TextMessageReceived received_text_message; + static NotificationParsingResult result; + Establish context = () => received_text_message = text_message_received_with_negative_sex(false); + + Because of = () => result = parser.Parse(received_text_message); + + It should_not_be_a_valid_case_report = () => result.IsValid.ShouldBeFalse(); + It should_have_two_error_messages = () => result.ErrorMessages.Count.ShouldEqual(2); + It should_be_a_valid_format = () => result.IsInvalidFormat.ShouldBeFalse(); + It should_a_human_case_report = () => result.IsNonHumanCaseReport.ShouldBeFalse(); + It should_be_a_single_case_report = () => result.IsSingleCaseReport.ShouldBeTrue(); + It should_not_be_a_multiple_case_report = () => result.IsMultipleCaseReport.ShouldBeFalse(); + } +} \ No newline at end of file diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs similarity index 81% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs index 8a76bc088..6a03fcc90 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs similarity index 81% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs index 2c9bea673..877d39c20 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_health_risk : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs similarity index 78% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs index 95842eec2..21f15416d 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs similarity index 85% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs index 05dafdbdb..f88e3943c 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs similarity index 84% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs index 3630f822c..c49103952 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_sex : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_man_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_man_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs index fe3bf0b8c..76a76f476 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_is_of_a_man_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_man_over_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly bool is_female = false; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_man_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_man_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs index 2ab967051..208b7acbe 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_man_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_man_under_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly bool is_female = false; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_woman_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_woman_over_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs index dd6e80793..741d94550 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star/when_report_is_of_a_woman_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_over_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly bool is_female = true; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs similarity index 86% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs index bac224732..2d1b1d771 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs @@ -3,16 +3,15 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using Events.NotificationGateway.Reporting.SMS; using Machine.Specifications; using Policies.Reporting.Notifications; +using Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given; -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash +namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_under_5 : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash { static readonly bool is_female = true; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_age_group.cs deleted file mode 100644 index 160e1c783..000000000 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_hash/when_report_has_a_negative_age_group.cs +++ /dev/null @@ -1,31 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) The International Federation of Red Cross and Red Crescent Societies. All rights reserved. - * Licensed under the MIT License. See LICENSE in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -using System; -using System.Collections.Generic; -using Events.NotificationGateway.Reporting.SMS; -using Machine.Specifications; -using Policies.Reporting.Notifications; - -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_hash -{ - [Subject("Notification")] - public class when_report_has_a_negative_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_hash - { - static readonly NotificationParser parser = new NotificationParser(); - static TextMessageReceived received_text_message; - static NotificationParsingResult result; - Establish context = () => received_text_message = text_message_received_with_negative_age_group(false); - - Because of = () => result = parser.Parse(received_text_message); - - It should_not_be_a_valid_case_report = () => result.IsValid.ShouldBeFalse(); - It should_have_two_error_messages = () => result.ErrorMessages.Count.ShouldEqual(2); - It should_be_a_valid_format = () => result.IsInvalidFormat.ShouldBeFalse(); - It should_a_human_case_report = () => result.IsNonHumanCaseReport.ShouldBeFalse(); - It should_be_a_single_case_report = () => result.IsSingleCaseReport.ShouldBeTrue(); - It should_not_be_a_multiple_case_report = () => result.IsMultipleCaseReport.ShouldBeFalse(); - } -} \ No newline at end of file diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs deleted file mode 100644 index 9e43a6ca7..000000000 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_text_message_with_a_correctly_formated_single_case_report/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs +++ /dev/null @@ -1,31 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) The International Federation of Red Cross and Red Crescent Societies. All rights reserved. - * Licensed under the MIT License. See LICENSE in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -using System; -using System.Collections.Generic; -using Events.NotificationGateway.Reporting.SMS; -using Machine.Specifications; -using Policies.Reporting.Notifications; - -namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_text_message_with_a_correctly_formated_single_case_report.separated_by_star_and_hash -{ - [Subject("Notification")] - public class when_report_has_a_negative_age_group : given.a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash - { - static readonly NotificationParser parser = new NotificationParser(); - static TextMessageReceived received_text_message; - static NotificationParsingResult result; - Establish context = () => received_text_message = text_message_received_with_negative_age_group(false); - - Because of = () => result = parser.Parse(received_text_message); - - It should_not_be_a_valid_case_report = () => result.IsValid.ShouldBeFalse(); - It should_have_two_error_messages = () => result.ErrorMessages.Count.ShouldEqual(2); - It should_be_a_valid_format = () => result.IsInvalidFormat.ShouldBeFalse(); - It should_a_human_case_report = () => result.IsNonHumanCaseReport.ShouldBeFalse(); - It should_be_a_single_case_report = () => result.IsSingleCaseReport.ShouldBeTrue(); - It should_not_be_a_multiple_case_report = () => result.IsMultipleCaseReport.ShouldBeFalse(); - } -} \ No newline at end of file From e67aeb58b12515a438ad9b3137fa619be30286f3 Mon Sep 17 00:00:00 2001 From: Cathinka Walberg Date: Tue, 14 May 2019 10:24:00 +0200 Subject: [PATCH 2/2] Rename Policies.Specs classes that have too long names. Removed separated info as it is already part of the path --- ...essage_received_events_containing_aggregated_case_report.cs} | 2 +- .../separated_by_hash/when_it_is_a_valid_report.cs | 2 +- .../separated_by_hash/when_report_has_a_negative_health_risk.cs | 2 +- ...n_report_has_a_negative_number_of_cases_of_females_over_5.cs | 2 +- ..._report_has_a_negative_number_of_cases_of_females_under_5.cs | 2 +- ...hen_report_has_a_negative_number_of_cases_of_males_over_5.cs | 2 +- ...en_report_has_a_negative_number_of_cases_of_males_under_5.cs | 2 +- .../when_report_has_an_invalid_value_for_females_over_5.cs | 2 +- .../when_report_has_an_invalid_value_for_females_under_5.cs | 2 +- .../when_report_has_an_invalid_value_for_health_risk.cs | 2 +- .../when_report_has_an_invalid_value_for_males_over_5.cs | 2 +- .../when_report_has_an_invalid_value_for_males_under_5.cs | 2 +- ...essage_received_events_containing_aggregated_case_report.cs} | 2 +- .../separated_by_star/when_it_is_a_valid_report.cs | 2 +- .../separated_by_star/when_report_has_a_negative_health_risk.cs | 2 +- ...n_report_has_a_negative_number_of_cases_of_females_over_5.cs | 2 +- ..._report_has_a_negative_number_of_cases_of_females_under_5.cs | 2 +- ...hen_report_has_a_negative_number_of_cases_of_males_over_5.cs | 2 +- ...en_report_has_a_negative_number_of_cases_of_males_under_5.cs | 2 +- .../when_report_has_an_invalid_value_for_females_over_5.cs | 2 +- .../when_report_has_an_invalid_value_for_females_under_5.cs | 2 +- .../when_report_has_an_invalid_value_for_health_risk.cs | 2 +- .../when_report_has_an_invalid_value_for_males_over_5.cs | 2 +- .../when_report_has_an_invalid_value_for_males_under_5.cs | 2 +- ...essage_received_events_containing_aggregated_case_report.cs} | 2 +- .../separated_by_star_and_hash/when_it_is_a_valid_report.cs | 2 +- .../when_report_has_a_negative_health_risk.cs | 2 +- ...n_report_has_a_negative_number_of_cases_of_females_over_5.cs | 2 +- ..._report_has_a_negative_number_of_cases_of_females_under_5.cs | 2 +- ...hen_report_has_a_negative_number_of_cases_of_males_over_5.cs | 2 +- ...en_report_has_a_negative_number_of_cases_of_males_under_5.cs | 2 +- .../when_report_has_an_invalid_value_for_females_over_5.cs | 2 +- .../when_report_has_an_invalid_value_for_females_under_5.cs | 2 +- .../when_report_has_an_invalid_value_for_health_risk.cs | 2 +- .../when_report_has_an_invalid_value_for_males_over_5.cs | 2 +- .../when_report_has_an_invalid_value_for_males_under_5.cs | 2 +- ...> a_text_message_received_builder_for_single_case_report.cs} | 2 +- .../separated_by_hash/when_report_has_a_negative_age_group.cs | 2 +- .../separated_by_hash/when_report_has_a_negative_health_risk.cs | 2 +- .../separated_by_hash/when_report_has_a_negative_sex.cs | 2 +- .../when_report_has_an_invalid_value_for_age_group.cs | 2 +- .../when_report_has_an_invalid_value_for_health_risk.cs | 2 +- .../when_report_has_an_invalid_value_for_sex.cs | 2 +- .../when_report_has_an_out_of_range_value_for_age_group.cs | 2 +- .../when_report_has_an_out_of_range_value_for_sex.cs | 2 +- .../separated_by_hash/when_report_is_of_a_man_over_5.cs | 2 +- .../separated_by_hash/when_report_is_of_a_man_under_5.cs | 2 +- .../separated_by_hash/when_report_is_of_a_woman_over_5.cs | 2 +- .../separated_by_hash/when_report_is_of_a_woman_under_5.cs | 2 +- ...> a_text_message_received_builder_for_single_case_report.cs} | 2 +- .../separated_by_star/when_report_has_a_negative_age_group.cs | 2 +- .../separated_by_star/when_report_has_a_negative_health_risk.cs | 2 +- .../separated_by_star/when_report_has_a_negative_sex.cs | 2 +- .../when_report_has_an_invalid_value_for_age_group.cs | 2 +- .../when_report_has_an_invalid_value_for_health_risk.cs | 2 +- .../when_report_has_an_invalid_value_for_sex.cs | 2 +- .../when_report_has_an_out_of_range_value_for_age_group.cs | 2 +- .../when_report_has_an_out_of_range_value_for_sex.cs | 2 +- .../separated_by_star/when_report_is_of_a_man_over_5.cs | 2 +- .../separated_by_star/when_report_is_of_a_man_under_5.cs | 2 +- .../separated_by_star/when_report_is_of_a_woman_over_5.cs | 2 +- .../separated_by_star/when_report_is_of_a_woman_under_5.cs | 2 +- ...> a_text_message_received_builder_for_single_case_report.cs} | 2 +- .../when_report_has_a_negative_age_group.cs | 2 +- .../when_report_has_a_negative_health_risk.cs | 2 +- .../when_report_has_a_negative_sex.cs | 2 +- .../when_report_has_an_invalid_value_for_age_group.cs | 2 +- .../when_report_has_an_invalid_value_for_health_risk.cs | 2 +- .../when_report_has_an_invalid_value_for_sex.cs | 2 +- .../when_report_has_an_out_of_range_value_for_age_group.cs | 2 +- .../when_report_has_an_out_of_range_value_for_sex.cs | 2 +- .../when_report_is_of_a_man_over_5.cs | 2 +- .../when_report_is_of_a_man_under_5.cs | 2 +- .../when_report_is_of_a_woman_over_5.cs | 2 +- .../when_report_is_of_a_woman_under_5.cs | 2 +- 75 files changed, 75 insertions(+), 75 deletions(-) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/{text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs => text_message_received_events_containing_aggregated_case_report.cs} (96%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/{text_message_received_events_containing_aggregated_case_report_separated_by_star.cs => text_message_received_events_containing_aggregated_case_report.cs} (96%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/{text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs => text_message_received_events_containing_aggregated_case_report.cs} (96%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/{a_text_message_received_builder_for_single_case_report_separated_by_hash.cs => a_text_message_received_builder_for_single_case_report.cs} (94%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/{a_text_message_received_builder_for_single_case_report_separated_by_star.cs => a_text_message_received_builder_for_single_case_report.cs} (94%) rename Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/{a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs => a_text_message_received_builder_for_single_case_report.cs} (94%) diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report.cs similarity index 96% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report.cs index e7614974c..0ae85a1f3 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/given/text_message_received_events_containing_aggregated_case_report.cs @@ -8,7 +8,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash.given { - public class text_message_received_events_containing_aggregated_case_report_separated_by_hash : text_message_received_events_containing_aggregated_case_reports + public class text_message_received_events_containing_aggregated_case_report : text_message_received_events_containing_aggregated_case_reports { static readonly char separator = '#'; protected static TextMessageReceived valid_text_message_received(int males_under_5, int males_over_5, int females_under_5, int females_over_5 ) => valid_text_message_received(males_under_5, males_over_5, females_under_5, females_over_5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs index 838658d6a..13bddd2bc 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_it_is_a_valid_report.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report { static readonly int cases_of_male_under_5 = 0; static readonly int cases_of_male_over_5 = 1; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs index 8bf38e485..09eea281b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs index 58e57975a..aff511784 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs index 2f2ec5877..46726708b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs index f46791b57..1700c74e0 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs index ce58d9015..ed3fbffdf 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs index d58de3c14..9be1e8219 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs index 303e0e0b5..5f075c4f7 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_females_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs index dbb5e62ae..2bf142291 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs index 78b4414a3..91886f99b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs index bca691df9..4475c1d07 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_males_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report.cs similarity index 96% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report.cs index ed33d83af..253b8b552 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report_separated_by_star.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/given/text_message_received_events_containing_aggregated_case_report.cs @@ -8,7 +8,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star.given { - public class text_message_received_events_containing_aggregated_case_report_separated_by_star : text_message_received_events_containing_aggregated_case_reports + public class text_message_received_events_containing_aggregated_case_report : text_message_received_events_containing_aggregated_case_reports { static readonly char separator = '*'; protected static TextMessageReceived valid_text_message_received(int males_under_5, int males_over_5, int females_under_5, int females_over_5 ) => valid_text_message_received(males_under_5, males_over_5, females_under_5, females_over_5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs index e99842045..a6b3329aa 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_it_is_a_valid_report.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report { static readonly int cases_of_male_under_5 = 0; static readonly int cases_of_male_over_5 = 1; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs index 8c16e7063..69c1d7845 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs index 57ac9edba..b98cbf534 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs index d1390e871..7a871976e 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_females_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs index 0d571e8ac..5bfac95c0 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs index 8969748ce..d381a08a5 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_a_negative_number_of_cases_of_males_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs index 1803fec96..09f3a8783 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs index a0df94350..3b2b28b14 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_females_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs index eba962262..eab79f5e5 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs index 66cd80ade..a4246c8e3 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs index c375fc591..fddd1667e 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_males_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report.cs similarity index 96% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report.cs index 4f3ae8086..62d4a07b3 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/given/text_message_received_events_containing_aggregated_case_report.cs @@ -8,7 +8,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash.given { - public class text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash : text_message_received_events_containing_aggregated_case_reports + public class text_message_received_events_containing_aggregated_case_report : text_message_received_events_containing_aggregated_case_reports { static readonly char? separator = null; protected static TextMessageReceived valid_text_message_received(int males_under_5, int males_over_5, int females_under_5, int females_over_5 ) => valid_text_message_received(males_under_5, males_over_5, females_under_5, females_over_5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs index 906b95605..9140a2797 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_it_is_a_valid_report.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_it_is_a_valid_report : text_message_received_events_containing_aggregated_case_report { static readonly int cases_of_male_under_5 = 0; static readonly int cases_of_male_over_5 = 1; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs index 1b7cf96f0..0f58e944e 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_health_risk : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs index 7bd38d970..ae19e461f 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_females_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs index 15bd6cfa8..d00f1855d 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_females_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_females_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs index a0c8be72e..10d554eaa 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_males_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs index 9163bb338..6998a33a4 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_number_of_cases_of_males_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_number_of_cases_of_males_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs index a93b00c6d..aa527b2ec 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_females_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs index e6916dda2..88e974d93 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_females_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_females_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs index 4b94dfc4b..006b61a15 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_health_risk : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs index 7a4fbf793..80b3928b2 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_males_over_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs index fc175509c..b47d4aca7 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_aggregated_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_males_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_aggregated_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_males_under_5 : text_message_received_events_containing_aggregated_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report.cs similarity index 94% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report.cs index 93124d156..66fb5549a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/given/a_text_message_received_builder_for_single_case_report.cs @@ -8,7 +8,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash.given { - public class a_text_message_received_builder_for_single_case_report_separated_by_hash : a_text_message_received_builder_for_single_case_report + public class a_text_message_received_builder_for_single_case_report : when_parsing_a_correctly_formated_single_case_report_sms.given.a_text_message_received_builder_for_single_case_report { static readonly char separator = '#'; protected static TextMessageReceived valid_text_message_received(bool woman, bool under5) => valid_text_message_received(woman, under5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs index d297e4f17..326f89b40 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs index c0e9d2840..482cbb171 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs index c70a99352..b119f1e26 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_a_negative_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs index 4d77a58db..3932e7544 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs index a358eef64..976231028 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs index 473b5adb8..0e42d6bc6 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_invalid_value_for_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs index 5492c8e07..eed4f4441 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs index da07f3cfa..0b0eaf56f 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_has_an_out_of_range_value_for_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs index 2c37023a1..79190bb0b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = false; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs index bdbd89da1..95da17b5a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_man_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = false; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs index 1265b4287..8e947d4ca 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = true; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs index fe4f4dbbe..11e007f93 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_hash/when_report_is_of_a_woman_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_hash + public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = true; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report.cs similarity index 94% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report.cs index 7a14da606..ff90f66d9 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report_separated_by_star.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/given/a_text_message_received_builder_for_single_case_report.cs @@ -8,7 +8,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star.given { - public class a_text_message_received_builder_for_single_case_report_separated_by_star : a_text_message_received_builder_for_single_case_report + public class a_text_message_received_builder_for_single_case_report : when_parsing_a_correctly_formated_single_case_report_sms.given.a_text_message_received_builder_for_single_case_report { static readonly char separator = '*'; protected static TextMessageReceived valid_text_message_received(bool woman, bool under5) => valid_text_message_received(woman, under5, separator); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs index af1fafc24..b8d114e96 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs index 0bb56fe61..c934f7176 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs index aa90dfcd7..323363118 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_a_negative_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs index f880971be..9d114a6ac 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs index ed6266595..2706e2941 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star + public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs index 58f60987a..8f40db0ac 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_invalid_value_for_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report_separated_by_star + public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs index 21c8e4e48..b32673c1a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs index 861bc20c7..96060bfb8 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_has_an_out_of_range_value_for_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs index 6e9940f36..07044581b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = false; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs index 77be019b1..91e5cf516 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_man_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = false; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs index 6dc6fa02a..0245408b4 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = true; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs index 6ba9c019b..79105e667 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star/when_report_is_of_a_woman_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star { [Subject("Notification")] - public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star + public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = true; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report.cs similarity index 94% rename from Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs rename to Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report.cs index caab72603..d6a669c39 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/given/a_text_message_received_builder_for_single_case_report.cs @@ -8,7 +8,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash.given { - public class a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash : a_text_message_received_builder_for_single_case_report + public class a_text_message_received_builder_for_single_case_report : when_parsing_a_correctly_formated_single_case_report_sms.given.a_text_message_received_builder_for_single_case_report { protected static TextMessageReceived valid_text_message_received(bool woman, bool under5) => valid_text_message_received(woman, under5, null); protected static TextMessageReceived text_message_received_with_invalid_health_risk_id(bool woman, bool under5) => text_message_received_with_invalid_health_risk_id(woman, under5, null); diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs index 8c6a058b2..c6974f60b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs index 91f1d4546..02defd537 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_health_risk : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs index abddfe16b..41895bfb6 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_a_negative_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_a_negative_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs index 6a03fcc90..7aa1d73d3 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_an_invalid_value_for_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs index 877d39c20..8471a64a2 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_health_risk.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class and_parsing_a_report_with_an_invalid_health_risk : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs index 21f15416d..6332711c3 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_invalid_value_for_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class and_parsing_a_report_with_an_invalid_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs index f88e3943c..a1a91ca35 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_age_group.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_an_out_of_range_value_for_age_group : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs index c49103952..f5ab6ab0a 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_has_an_out_of_range_value_for_sex.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_has_an_out_of_range_value_for_sex : a_text_message_received_builder_for_single_case_report { static readonly NotificationParser parser = new NotificationParser(); static TextMessageReceived received_text_message; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs index 76a76f476..585589594 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_man_over_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = false; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs index 208b7acbe..5c73a049b 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_man_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_man_under_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = false; static readonly bool age_is_under_5 = true; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs index 741d94550..2a5d344a6 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_over_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_woman_over_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = true; static readonly bool age_is_under_5 = false; diff --git a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs index 2d1b1d771..b48c7684e 100644 --- a/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs +++ b/Source/Reporting/Policies.Specs/Reporting/for_notifications/when_parsing_a_correctly_formated_single_case_report_sms/separated_by_star_and_hash/when_report_is_of_a_woman_under_5.cs @@ -11,7 +11,7 @@ namespace Policies.Specs.Reporting.for_notifications.when_parsing_a_correctly_formated_single_case_report_sms.separated_by_star_and_hash { [Subject("Notification")] - public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report_separated_by_star_and_hash + public class when_report_is_of_a_woman_under_5 : a_text_message_received_builder_for_single_case_report { static readonly bool is_female = true; static readonly bool age_is_under_5 = true;