示例#1
0
        public void AnotherBusinessEntityNameIsRoad()
        {
            var bu = AnotherBusinessEntity
                     .New(Name.From("Road"), Email.From("*****@*****.**"));

            var isRoad = new AnotherBusinessEntityNameIsRoad(Name.From("Road"));

            Assert.True(isRoad.IsSatisfiedBy(bu));
        }
示例#2
0
        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));
        }