Application: storage account connection abstraction & use case
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
調査の方向性
AzStorage.Application プロジェクトから始め、既存の Storage Account ドメインモデルとプロジェクト参照を確認してから、issue に記載された Azure SDK の境界を確認します。インターフェース、ユースケース、結果処理、および fake または mock の単体テストを追加します。完了の条件は、application プロジェクトに Azure.Storage.* 依存関係がなく、テストが成功に加えて少なくとも 2 つの失敗シナリオをカバーしていることです。
索引モデルが issue の本文から書いたものです。
説明
Goal
Define an application-layer port for connecting to and validating a storage account, independent of the concrete Azure SDK.
Why
Following ports-and-adapters (Domain/Application define interfaces, Infrastructure implements them with the Azure SDK) keeps business logic testable and swappable — e.g. easy to fake in unit tests, and open to supporting Azurite or other stores later.
Tasks
- Add
IStorageAccountConnectorinterface inAzStorage.Applicationwith a method likeValidateAndConnectAsync(StorageAccount account, CancellationToken ct). - Add a
ConnectToStorageAccountUseCase(plain class is fine, no need for a mediator library yet) that validates the domain object and delegates toIStorageAccountConnector. - Add a clear result type (success / specific failure reasons: invalid credentials, network error, forbidden) instead of leaking raw exceptions, so a future UI can show helpful error messages — this directly targets the common Storage Explorer complaint about vague "Unable to retrieve children" errors.
- Add unit tests using a fake/mock
IStorageAccountConnector.
Acceptance Criteria
AzStorage.Applicationhas zero direct dependency onAzure.Storage.*packages.- Unit tests cover success and at least two distinct failure scenarios.
Depends on
- Domain: model Storage Account & connection credentials
- 主要言語
- C#
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hunterlan/AzStorage のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
hunterlan/AzStorage の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AvaloniaUI/Avalonia#22420 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
dotnet/SqlClient#4823 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
area-testing p1-recommended
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
StackExchange/StackExchange.Redis#3269 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信