Skip to content

Commit

Permalink
add Argumentexception to AdmingEventRepository
Browse files Browse the repository at this point in the history
Related to: aliencube#319
  • Loading branch information
sikutisa committed Sep 16, 2024
1 parent 2699d1c commit ad91218
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public interface IAdminEventRepository
/// </summary>
public class AdminEventRepository(TableServiceClient tableServiceClient, StorageAccountSettings storageAccountSettings) : IAdminEventRepository
{
private readonly TableServiceClient _tableServiceClient = tableServiceClient;
private readonly StorageAccountSettings _storageAccountSettings = storageAccountSettings;
private readonly TableServiceClient _tableServiceClient = tableServiceClient ?? throw new ArgumentException(nameof(tableServiceClient));
private readonly StorageAccountSettings _storageAccountSettings = storageAccountSettings ?? throw new ArgumentException(nameof(storageAccountSettings));

/// <inheritdoc />
public async Task<AdminEventDetails> CreateEvent(AdminEventDetails eventDetails)
Expand Down

0 comments on commit ad91218

Please sign in to comment.