public void CosmosDB_SnapshotStoreSettingsSettings_must_have_default_values()
        {
            var cosmosDBPersistence = CosmosDBPersistence.Get(Sys);

            cosmosDBPersistence.SnapshotStoreSettings.ServiceUri.Should().Be(string.Empty);
            cosmosDBPersistence.SnapshotStoreSettings.SecretKey.Should().Be(string.Empty);
            cosmosDBPersistence.SnapshotStoreSettings.AutoInitialize.Should().BeFalse();
            cosmosDBPersistence.SnapshotStoreSettings.Database.Should().Be("Actors");
            cosmosDBPersistence.SnapshotStoreSettings.Collection.Should().Be("persistence");
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CosmosDBSnapshotStore"/> class.
 /// </summary>
 public CosmosDBSnapshotStore()
 {
     this.settings      = CosmosDBPersistence.Get(Context.System).SnapshotStoreSettings;
     this.serialization = Context.System.Serialization;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CosmosDBJournal"/> class.
 /// </summary>
 public CosmosDBJournal()
 {
     this.settings      = CosmosDBPersistence.Get(Context.System).JournalSettings;
     this.serialization = Context.System.Serialization;
 }