Skip to content

SettingsRepoTests

Namespace: UnitTests.Repositories

Unit tests for the SettingsRepo class, verifying settings repository operations and database interactions.

public class SettingsRepoTests

Inheritance ObjectSettingsRepoTests

Constructors

SettingsRepoTests()

public SettingsRepoTests()

Methods

AddTopicSettingAsync_WithNullTopicSetting_ShouldThrowArgumentNullException()

Tests that AddTopicSettingAsync throws ArgumentNullException when topic setting parameter is null.

public Task AddTopicSettingAsync_WithNullTopicSetting_ShouldThrowArgumentNullException()

Returns

Task

Constructor_WithNullContext_ShouldThrowArgumentNullException()

Tests that the constructor throws ArgumentNullException when database context parameter is null.

public void Constructor_WithNullContext_ShouldThrowArgumentNullException()

Constructor_WithValidContext_ShouldCreateInstance()

Tests that the constructor creates a valid instance when provided with valid database context.

public void Constructor_WithValidContext_ShouldCreateInstance()

Setup()

Sets up test fixtures and initializes database context before each test execution.

public void Setup()

TearDown()

Cleans up resources and disposes database context after each test execution.

public void TearDown()