Builder Pattern for creating Test Data
When writing automated tests, we use test data to test certain use cases.
Common way
One common way is creating test data via a constant.
let restaurantWithOnlyName = Restaurant(
name: "Delicioso food",
cuisines: nil,
rating: nil
)
A...
kittako.hashnode.dev4 min read
Amit Jangirh
An iOS app developer
Good one, will try it.