示例#1
0
        public override void SetUp()
        {
            base.SetUp();

            store.Listeners.RegisterListener(new SubscriptionV1toV2Converter());

            persister = new SubscriptionPersister(store);
            msgType   = new MessageType(typeof(MessageA));
            docId     = new VersionedSubscriptionIdFormatter().FormatId(msgType);
        }
 public SubscriptionPersister(IDocumentStore store)
 {
     documentStore           = store;
     SubscriptionIdFormatter = new VersionedSubscriptionIdFormatter();
 }