private static void PersistsAsSerialized(Serializer serializer, string extension) { var consumer = new FileConsumer <StringEvent>(serializer, "Events", extension); var @event = new StringEvent("Test!"); consumer.Handle(@event); var file = OneFileSaved(extension); FileContainsTheEvent(file, serializer, @event); }