示例#1
0
        public void TestNotSpecificationJoins()
        {
            var spec = new AuthUserRoleJoinSpecification();

            var joins = spec.Not().RequiredJoins();

            joins.Should().BeEquivalentTo(PossibleJoins.AuthUserRole);
        }
示例#2
0
        public void TestAndSpecificationJoins()
        {
            var aSpec = new AuthUserRoleJoinSpecification();
            var bSpec = new RoleJoinSpecification();

            var joins = aSpec.And(bSpec).RequiredJoins();

            joins.Should().BeEquivalentTo(PossibleJoins.AuthUserRole, PossibleJoins.Role);
        }