public void BuildPhoneListTest_1_phone_0_text_0_list() { var registrant = new RegistrantDb(); registrant.Phones = new List <RegistrantPhone>(); registrant.Phones.Add(new RegistrantPhone { CanText = false, Phone = "7035551212" }); _worker = new RegistrantMessageWorker(registrant, "20255512121"); List <string> actual = _worker.BuildPhoneList(); Assert.Equal(0, actual.Count); }
public void BuildPhoneListTest_3_phone_3_text_3_list() { var registrant = new RegistrantDb(); registrant.Phones = new List <RegistrantPhone>(); registrant.Phones.Add(new RegistrantPhone { CanText = true, Phone = "7035551212" }); registrant.Phones.Add(new RegistrantPhone { CanText = true, Phone = "2125551212" }); registrant.Phones.Add(new RegistrantPhone { CanText = true, Phone = "3015551212" }); _worker = new RegistrantMessageWorker(registrant, "20255512121"); List <string> actual = _worker.BuildPhoneList(); Assert.Equal(3, actual.Count); Assert.Equal("+17035551212", actual[0]); Assert.Equal("+12125551212", actual[1]); Assert.Equal("+13015551212", actual[2]); }