public void TestNotSpecificationJoins() { var spec = new AuthUserRoleJoinSpecification(); var joins = spec.Not().RequiredJoins(); joins.Should().BeEquivalentTo(PossibleJoins.AuthUserRole); }
public void TestAndSpecificationJoins() { var aSpec = new AuthUserRoleJoinSpecification(); var bSpec = new RoleJoinSpecification(); var joins = aSpec.And(bSpec).RequiredJoins(); joins.Should().BeEquivalentTo(PossibleJoins.AuthUserRole, PossibleJoins.Role); }