You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are they even necessary or can normal LocalAddressBookss used?
In any case, the code that manages test address books should be in a Hilt (→ no Context passing) class, be it LocalAddressBookStore or an extension of it or a separate one.
So:
Think about better class/test design (including testing philosophy: mock vs fake class vs real class).
Decide whether LocalTestAddressBook is necessary.
Check subclasses vs interfaces vs extension methods.
The text was updated successfully, but these errors were encountered:
rfc2822
changed the title
Provide one preferred way (ideally with DI) of providing test address books. (Are they even necessary or can normal LocalAddressBookss used?)
Provide one preferred way (ideally with DI) of providing test address books
Feb 9, 2025
Are they even necessary or can normal
LocalAddressBooks
s used?In any case, the code that manages test address books should be in a Hilt (→ no Context passing) class, be it
LocalAddressBookStore
or an extension of it or a separate one.So:
LocalTestAddressBook
is necessary.The text was updated successfully, but these errors were encountered: