Exemple #1
0
        public void Azure_Blob_CreateStoreFromCore()
        {
            // Given
            var azureBlobCore = new AzureBlobCore("azure_dev");

            // When
            var store = azureBlobCore.CreateStoreFor<InstrumentDocuments>();

            // Then
            Assert.IsTrue(store is AzureStore<InstrumentDocuments>);
        }
Exemple #2
0
        public void Azure_Blob_SaveToAzureExampleData()
        {
            // Given
            var azureCore = new AzureBlobCore("azure_dev");
            var exmapleItmes = this.GetExampleItems();

            // When
            azureCore.SaveAll(exmapleItmes);

            // Then
        }
Exemple #3
0
        public void Azure_Blob_CreateStoreFromCore()
        {
            // Given
            var azureBlobCore = new AzureBlobCore("azure_dev");

            // When
            var store = azureBlobCore.CreateStoreFor <InstrumentDocuments>();

            // Then
            Assert.IsTrue(store is AzureStore <InstrumentDocuments>);
        }
Exemple #4
0
        public void Azure_Blob_SaveToAzureExampleData()
        {
            // Given
            var azureCore    = new AzureBlobCore("azure_dev");
            var exmapleItmes = this.GetExampleItems();

            // When
            azureCore.SaveAll(exmapleItmes);

            // Then
        }
Exemple #5
0
        public void Azure_Blob_ReadFromBlob()
        {
            // Given
            var azureCore = new AzureBlobCore("azure_dev");
            var exmapleItmes = this.GetExampleItems();
            azureCore.SaveAll(exmapleItmes);

            // When
            var result = azureCore.GetAll<InstrumentDocuments>();

            // Then
            Assert.AreEqual(this.quantityToAdd, result.Count());
        }
Exemple #6
0
        public void Azure_Blob_ReadFromBlob()
        {
            // Given
            var azureCore    = new AzureBlobCore("azure_dev");
            var exmapleItmes = this.GetExampleItems();

            azureCore.SaveAll(exmapleItmes);

            // When
            var result = azureCore.GetAll <InstrumentDocuments>();

            // Then
            Assert.AreEqual(this.quantityToAdd, result.Count());
        }
Exemple #7
0
 private static IDataStore <InstrumentDocuments> GetAzureStore()
 {
     return(AzureBlobCore.CreateStoreFor <InstrumentDocuments>(AzureStoreUsingBlobWithStringKey.ConnectionStringName));
 }