Skip to content

PolicyExtensions

Test-support builder/extension type used to construct in-memory repository fixtures for unit tests.*

Purpose

  • Supports building or extending fake/in-memory repositories for test scenarios.*

Context

  • Namespace: SAIF.Data.TestRepository.RepositoryExtensions
  • Assembly/package: SAIF.Data

Public members

Member Signature Purpose
SeedForPolicyTesting static TestUnitOfWork SeedForPolicyTesting(this TestUnitOfWork uow) Performs the SeedForPolicyTesting operation.*
GenerateAgencies static TestUnitOfWork GenerateAgencies(this TestUnitOfWork uow) Performs the GenerateAgencies operation.*
GenerateDefaultPolicies static TestUnitOfWork GenerateDefaultPolicies(this TestUnitOfWork uow) Performs the GenerateDefaultPolicies operation.*
GenerateRelationshipPolicies static TestUnitOfWork GenerateRelationshipPolicies(this TestUnitOfWork uow, string relationship) Performs the GenerateRelationshipPolicies operation.*
Seed static void Seed(this IRepository<MarketTypeCode> repo) Performs the Seed operation.*
Seed static void Seed(this IRepository<PolicyRelationshipCode> repo) Performs the Seed operation.*
Seed static void Seed(this IRepository<OfficeCode> repo) Performs the Seed operation.*

Behavioral notes

  • No additional behavioral notes beyond the member purposes above could be confirmed from static analysis.**

Constraints and usage notes

  • No additional usage constraints beyond standard NHibernate entity/DTO conventions could be confirmed from static analysis.**

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyExtensions.cs