Ejemplo n.º 1
0
 public void Given_a_fully_qualified_international_phoneNumbers_Should_return_both_GSM_and_normailized_local_number(string input, string expectedInternational, string expectedLocal)
 {
     var sut = new ContactPhoneNumber(input, "test");
     var expected = new[] {expectedInternational, expectedLocal};
     CollectionAssert.AreEqual(expected, sut.NormalizedHandle());
 }
            public async Task Then_contacts_are_available_by_normailized_local_PhoneNumber()
            {
                var expected = new ContactPhoneNumber("+44 7 8277 12345","home");

                await Then_contacts_are_available_by_key(new ContactPhoneNumber("07827712345", null), "Billy Bonds", expected);
            }
Ejemplo n.º 3
0
 public void Given_a_local_phoneNumbers_Should_return_just_the_normalized_local_number(string input, string expected)
 {
     var sut = new ContactPhoneNumber(input, "test");
     Assert.AreEqual(expected, sut.NormalizedHandle().Single());
 }