public void HRCommonForkerOnCanOrderWithNullServiceAndValidOrderByExpectFalse()
        {
            HRSortingParamModel model = new HRSortingParamModel()
            {
                OrderBy = "FIELD1;ASC"
            };
            HRCommonForkerUtils util = new HRCommonForkerUtils();

            Assert.False(util.CanOrder(model, null));
        }
        public void HRCommonForkerOnCanOrderWithInvalidOrderByExpectFalse()
        {
            HRSortingParamModel model = new HRSortingParamModel()
            {
                OrderBy = "FIELD1"
            };
            CoreBordersServiceStub service = new CoreBordersServiceStub(null)
            {
                ThrowException = false,
                IsSortable     = true
            };
            HRCommonForkerUtils util = new HRCommonForkerUtils();

            Assert.False(util.CanOrder(model, service));
        }
        public void HRCommonForkerOnCanOrderWithNullOrEmptyOrderByExpectTrue()
        {
            HRSortingParamModel model = new HRSortingParamModel()
            {
                OrderBy = null
            };

            CoreBordersServiceStub service = new CoreBordersServiceStub(null)
            {
                ThrowException = false,
                IsSortable     = true
            };
            HRCommonForkerUtils util = new HRCommonForkerUtils();

            Assert.True(util.CanOrder(model, service));

            model.OrderBy = String.Empty;
            Assert.True(util.CanOrder(model, service));
        }