public async Task TestInitialize() { var table = new AzureCloudTable(connectionString, "TestTable"); await table.CreateIfNotExistsAsync(); store = new AzureTableProfileStore(table); }
public async Task TestInitialize() { testConversation = new Conversation(new List <string> { Guid.NewGuid().ToString(), Guid.NewGuid().ToString() }); testMessage = new Message("Hola", testConversation.Participants[1]); testConversation1 = new Conversation(new List <string> { testConversation.Participants[0], Guid.NewGuid().ToString() }); testConversation2 = new Conversation(new List <string> { Guid.NewGuid().ToString(), Guid.NewGuid().ToString() }); testConversation3 = new Conversation(new List <string> { testConversation.Participants[0], testConversation.Participants[1] }); testConversation4 = new Conversation(new List <string> { testConversation.Participants[0], Guid.NewGuid().ToString() }); testMessage1 = new Message("Hi", testConversation.Participants[0]); var messageTable = new AzureCloudTable(connectionString, "TestMessageTable"); var userConversationsTable = new AzureCloudTable(connectionString, "TestUserConversationsTable"); await messageTable.CreateIfNotExistsAsync(); await userConversationsTable.CreateIfNotExistsAsync(); store = new AzureConversationStore(messageTable, userConversationsTable); testMessage2 = new Message("Hello", testConversation.Participants[1]); }
public async Task TestInitialize() { emulator = new AzureStorageEmulatorProxy(); emulator.StartEmulator(); var table = new AzureCloudTable(connectionString, "TestTable"); await table.CreateIfNotExistsAsync(); store = new AzureTableProfileStore(table); }
public async Task TestInitialize() { var messagesTable = new AzureCloudTable(ConnectionString, "MessagesTable"); await messagesTable.CreateIfNotExistsAsync(); var messageStore = new AzureTableMessagesStore(messagesTable); var conversationsTable = new AzureCloudTable(ConnectionString, "ConversationsTable"); await conversationsTable.CreateIfNotExistsAsync(); store = new AzureTableConversationsStore(conversationsTable, messageStore); }