Initial commit, project structure and domain models

This commit is contained in:
2026-04-07 09:14:06 -07:00
commit 7b15086fe5
111 changed files with 19818 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using NUnit.Framework;
using AppEnvironment = MicCheck.Api.Environments.Environment;
namespace MicCheck.Api.Tests.Unit.Environments;
[TestFixture]
public class EnvironmentTests
{
[Test]
public void WhenAnEnvironmentIsCreated_ThenFeatureStatesCollectionIsInitializedEmpty()
{
var environment = new AppEnvironment { Name = "Production", ApiKey = "env-key-abc" };
Assert.That(environment.FeatureStates, Is.Empty);
}
[Test]
public void WhenAnEnvironmentIsCreated_ThenNameAndApiKeyAreSet()
{
var environment = new AppEnvironment { Name = "Staging", ApiKey = "env-key-xyz" };
Assert.That(environment.Name, Is.EqualTo("Staging"));
Assert.That(environment.ApiKey, Is.EqualTo("env-key-xyz"));
}
}