示例#1
0
        public void ShouldNotSortAsDefault()
        {
            // Arrange + Act
            var result = _sut.Create <QueryablePerson, GetPersonListRequest>(new GetPersonListRequest());

            // Assert
            result.Should().BeOfType(typeof(DefaultSort <QueryablePerson>));
        }
示例#2
0
        public void GivenARequestShouldReturnDefaultSortForUnknownType()
        {
            // Arrange + act
            var result = _sut.Create <SomeUnknownType, GetPersonListRequest>(new GetPersonListRequest());

            // Assert
            result.Should().BeOfType <DefaultSort <SomeUnknownType> >();
        }