Example #1
0
        public TestResourceControllerMockery WithInvalidOrderByClause()
        {
            OrderByPropertyMappingService
            .Setup(s => s.ClauseIsValid(It.IsAny <string>()))
            .Returns((false, new ProblemDetails()));

            return(this);
        }
Example #2
0
        public TestResourceControllerMockery WithValidOrderByClause()
        {
            OrderByPropertyMappingService
            .Setup(s => s.ClauseIsValid(It.IsAny <string>()))
            .Returns((true, null));

            return(this);
        }