public async Task Should_invoke_asset_store_to_upload_archive() { var stream = new MemoryStream(); await sut.UploadAsync(appId, stream); A.CallTo(() => assetStore.UploadAsync(fileName, stream, true, CancellationToken.None)) .MustHaveHappened(); }
public async Task Should_invoke_asset_store_to_upload_archive(bool folderPerApp) { var stream = new MemoryStream(); options.FolderPerApp = folderPerApp; var fileName = GetFileName(folderPerApp); await sut.UploadAsync(appId, stream); A.CallTo(() => assetStore.UploadAsync(fileName, stream, true, CancellationToken.None)) .MustHaveHappened(); }