Because the sole difference between testing the function directly and testing with an http client is the serialization/dependency injection, and that this is already done, it'll be less akward if I test using the function, because no parsing/serializing JSON will take place, as the function returns models directly. I'll still need to test for the database though.
Because the sole difference between testing the function directly and testing with an http client is the serialization/dependency injection, and that this is already done, it'll be less akward if I test using the function, because no parsing/serializing JSON will take place, as the function returns models directly. I'll still need to test for the database though.