public async Task コマンドを発行してドキュメントが作成されること() { await sut.Handle(new CreateOrUpdateDocumentCommand() { Path = new FilePath("document.txt"), Data = await dataStore.CreateAsync(Encoding.UTF8.GetBytes("Hello, world")).ConfigureAwait(false) }); var document = repository.Entities.Single(); Assert.AreEqual("document.txt", document.Path.ToString()); Assert.AreEqual("Hello, world", await ReadTextAsync(document.StorageKey)); }