public void IsNotPageableModelBinder() { var modelBinderProviderContextMock = new ModelBinderProviderContextMock(typeof(string)); var expected = new PageableModelBinderProvider(new AutumnSettings()); Assert.Null(expected.GetBinder(modelBinderProviderContextMock)); }
public void IsQueryModelBinder() { var modelBinderProviderContextMock = new ModelBinderProviderContextMock(typeof(Expression <Func <string, bool> >)); var expected = new QueryModelBinderProvider(new AutumnSettings()); Assert.NotNull(expected.GetBinder(modelBinderProviderContextMock)); }