convert CodeMonitorStore to an interface and generate mocks
Created by: camdencheek
This converts CodeMonitorStore to an interface, and generates a mock store for it. This will be useful for expanding testing around code monitors.
Stacked on #27479