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