public void k03_when_a_person_is_batised_its_name_is_set() { IPerson person = CreatePerson <IPerson>(); person.Baptize("Jo"); person.Name.Should().Be("Jo"); }
public void k05_when_a_person_is_batised_it_is_notified() { IPerson person = CreatePerson <IPerson>(); var subject = person as ISubject; var notified = false; subject.NameChanged += (person, args) => { notified = true; }; person.Baptize("Jo"); notified.Should().BeTrue(); }