Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Application: storage account connection abstraction & use case

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
azure, csharp
領域
backend, cloud, testing

調査の方向性

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 IStorageAccountConnector interface in AzStorage.Application with a method like ValidateAndConnectAsync(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 to IStorageAccountConnector.
  • 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.Application has zero direct dependency on Azure.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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hunterlan/AzStorage のほかの issue

hunterlan/AzStorage の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。