コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }