public void Given_a_GoogleMail_address_When_normalized_Then_the_domain_should_be_returned_as_gmail(string input, string expected) { var sut = new ContactEmailAddress(input, "foo"); var actual = sut.NormalizedHandle(); CollectionAssert.AreEqual(new[]{expected}, actual); }
public void Given_a_GoogleMail_address_When_normalized_Then_the_periods_in_alias_are_removed(string input, string expected) { var sut = new ContactEmailAddress(input, "foo"); var actual = sut.NormalizedHandle(); CollectionAssert.AreEqual(new[] { expected }, actual); }
public async Task Then_contacts_are_available_by_email_address() { var expected = new ContactEmailAddress("*****@*****.**","home"); await Then_contacts_are_available_by_key(new ContactEmailAddress("*****@*****.**", null), "Alex Adams", expected); }