public TestPetImagesClient(ICosmosContainer accountContainer, ICosmosContainer imageContainer, IBlobContainer blobContainer, IMessagingClient messagingClient) { this.AccountContainer = accountContainer; this.ImageContainer = imageContainer; this.BlobContainer = blobContainer; this.MessagingClient = messagingClient; }
public static async Task <bool> DoesItemExist <T>(ICosmosContainer container, string partitionKey, string id) where T : DbItem { try { await container.GetItem <T>(partitionKey, id); return(true); } catch (DatabaseItemDoesNotExistException) { return(false); } }
public TestPetImagesClient(ICosmosContainer accountContainer, ICosmosContainer imageContainer, IBlobContainer blobContainer) { this.AccountContainer = accountContainer; this.ImageContainer = imageContainer; this.BlobContainer = blobContainer; }
public TestPetImagesClient(ICosmosContainer accountContainer) { this.AccountContainer = accountContainer; }
public AccountController(ICosmosContainer cosmosDb) { this.CosmosContainer = cosmosDb; }