package Ġcom . gan . breaking bad . domain Ċ Ċ import Ġcom . gan . breaking bad . characters . data . Break ing Bad Character Ċ import Ġcom . gan . breaking bad . characters . data . Break ing Bad Character Response Ċ import Ġcom . gan . breaking bad . characters . domain . Break ing Bad Repository Ċ Ċ class ĠMock Break ing Bad Character Repository : ĊĠĠĠ ĠBreaking Bad Repository Ġ{ ĊĠĠĠ Ġvar Ġcallback : Ġ( Break ing Bad Character Response ) Ġ-> ĠUnit Ġ= Ġ{} ĊĊĠĠĠ Ġfun Ġsimulate Success ( breaking Bad Character List : ĠList < Break ing Bad Character >) Ġ{ ĊĠĠĠĠĠĠĠ Ġcallback ( Break ing Bad Character Response . Success ( breaking Bad Character List )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġsimulate Network Error () Ġ{ ĊĠĠĠĠĠĠĠ Ġcallback ( Break ing Bad Character Response . Network Error ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġsimulate ServerError () Ġ{ ĊĠĠĠĠĠĠĠ Ġcallback ( Break ing Bad Character Response . ServerError ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġfetch Break ing Bad Characters ( callback : Ġ( Break ing Bad Character Response ) Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . callback Ġ= Ġcallback ĊĠĠĠ Ġ} Ċ }