I create a bloc call Authentication. This bloc emit two state call Autenticated and UnAuthenticated base on AuthenticationRepository which dependency injected into bloc.
Then I tring to create a mocked MockAuthenticationRepository for unit test but I got two different state so I have to create two different version of repository like MockAutenticatedAuthenticationRepository and MockUnAuthenticatedAuthenticationRepository to test these two case.
But maybe there is a another bloc emit 5 or 6 state base on repository then i have to create 5 to 6 mocked repository for it. This sound not terribly wrong because one bloc shondn't growing unlimit. But I still looking for better way to solve this. Anyone got better idea?