public void GetIdType_Correctly_Identifies_NonJsonApiResource() { // Arrange var type = typeof(DerivedType); // Act var idType = TypeLocator.TryGetIdType(type); // Assert Assert.Null(idType); }
public void GetIdType_Correctly_Identifies_JsonApiResource() { // Arrange var type = typeof(Model); // Act var idType = TypeLocator.TryGetIdType(type); // Assert Assert.Equal(typeof(int), idType); }