public DeleteTodoHandlerTests() { _todoItemRepository = Substitute.For <ITodoItemRepository>(); _busPublisher = Substitute.For <IBusPublisher>(); _context = Substitute.For <ICorrelationContext>(); _commandHandler = new DeleteTodoHandler(_todoItemRepository, _busPublisher); }
public HandlersTests() { var dbContext = DbContextCreate(); _getTodoListHandler = new(dbContext); _createTodoHandler = new(dbContext); _deleteTodoHandler = new(dbContext); _putTodoHandler = new(dbContext); _getTodoByIdHandler = new(dbContext); }