SettingsRepoTests¶
Namespace: UnitTests.Repositories
Unit tests for the SettingsRepo class, verifying settings repository operations and database interactions.
Inheritance Object → SettingsRepoTests
Constructors¶
SettingsRepoTests()¶
Methods¶
AddTopicSettingAsync_WithNullTopicSetting_ShouldThrowArgumentNullException()¶
Tests that AddTopicSettingAsync throws ArgumentNullException when topic setting parameter is null.
Returns¶
Constructor_WithNullContext_ShouldThrowArgumentNullException()¶
Tests that the constructor throws ArgumentNullException when database context parameter is null.
Constructor_WithValidContext_ShouldCreateInstance()¶
Tests that the constructor creates a valid instance when provided with valid database context.
Setup()¶
Sets up test fixtures and initializes database context before each test execution.
TearDown()¶
Cleans up resources and disposes database context after each test execution.