public static void Main(string[] args) { Console.WriteLine("Register handlers"); var handler = new GetShoppingListHandler(); Console.WriteLine("press any key to stop the handlers"); Console.ReadLine(); Console.WriteLine("Unregister handlers"); handler.Dispose(); }
public GetShoppingListHandlerTests() { repository = new Mock <IShoppingListReadRepository>(); handler = new GetShoppingListHandler(repository.Object); }