15 references to IntEnum
Microsoft.AspNetCore.Mvc.Core.Test (15)
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (15)
384
var bindingContext = GetBindingContext(typeof(
IntEnum
));
390
var binder = new SimpleTypeModelBinder(typeof(
IntEnum
), NullLoggerFactory.Instance);
397
var
boundModel = Assert.IsType<
IntEnum
>(bindingContext.Result.Model);
398
Assert.Equal(
IntEnum
.Value1, boundModel);
405
var bindingContext = GetBindingContext(typeof(
IntEnum
));
411
var binder = new SimpleTypeModelBinder(typeof(
IntEnum
), NullLoggerFactory.Instance);
418
var
boundModel = Assert.IsType<
IntEnum
>(bindingContext.Result.Model);
419
Assert.Equal(
IntEnum
.Value1, boundModel);
446
var bindingContext = GetBindingContext(typeof(
IntEnum
));
452
var binder = new SimpleTypeModelBinder(typeof(
IntEnum
), NullLoggerFactory.Instance);
459
var
boundModel = Assert.IsType<
IntEnum
>(bindingContext.Result.Model);
460
Assert.Equal((
IntEnum
)expected, boundModel);