public void AnotherBusinessEntityNameIsRoad() { var bu = AnotherBusinessEntity .New(Name.From("Road"), Email.From("*****@*****.**")); var isRoad = new AnotherBusinessEntityNameIsRoad(Name.From("Road")); Assert.True(isRoad.IsSatisfiedBy(bu)); }
public void AnotherBusinessEntityNameIsRoadAndEmailFromRoadCompany() { var bu = AnotherBusinessEntity .New(Name.From("Road"), Email.From("*****@*****.**")); var isRoad = new AnotherBusinessEntityNameIsRoad(Name.From("Road")); var isFromCompany = new AnotherBusinessEntityEmailFromCompany(Email.From("*****@*****.**")); isRoad.And(isFromCompany); Assert.True(isRoad.IsSatisfiedBy(bu)); }