---
title: PolicyOutputDocumentExtensions
summary: API reference for PolicyOutputDocumentExtensions.
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# PolicyOutputDocumentExtensions

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 |
| --- | --- | --- |
| PolicyNumber | `long PolicyNumber { get; set; }` | Value of policy number exposed by this type.* |
| PolicyPeriod | `DateTime PolicyPeriod { get; set; }` | Date/time value for policy period.* |
| DocumentDate | `DateTime DocumentDate { get; set; }` | Date/time value for document date.* |
| ReleaseDate | `DateTime ReleaseDate { get; set; }` | Date/time value for release date.* |
| DocumentStatusCode | `string DocumentStatusCode { get; set; }` | Coded value identifying document status code.* |
| DocumentCount | `int DocumentCount { get; set; }` | Value of document count exposed by this type.* |
| OtherPolicyDocumentCount | `int OtherPolicyDocumentCount { get; set; }` | Value of other policy document count exposed by this type.* |
| TaskUser | `string TaskUser { get; set; }` | Value of task user exposed by this type.* |
| DocsToCreate | `string DocsToCreate { get; set; }` | Value of docs to create exposed by this type.* |
| DocsNotToCreate | `string DocsNotToCreate { get; set; }` | Value of docs not to create exposed by this type.* |
| SeedWithASingleTwoDayOldDocumentOnARegionalPolicyServicedByADirectWriter | `static void SeedWithASingleTwoDayOldDocumentOnARegionalPolicyServicedByADirectWriter( this TestUnitOfWork uow, string docStatusCode)` | Performs the `SeedWithASingleTwoDayOldDocumentOnARegionalPolicyServicedByADirectWriter` operation.* |
| SeedWithDocumentsWithThreeNotifyTypesOnARegionalPolicyServedByADirectWriter | `static void SeedWithDocumentsWithThreeNotifyTypesOnARegionalPolicyServedByADirectWriter( this TestUnitOfWork uow, string docStatusCode, DateTime docDate, int numberOfDocs)` | Performs the `SeedWithDocumentsWithThreeNotifyTypesOnARegionalPolicyServedByADirectWriter` operation.* |
| SeedWithDocumentsOnARegionalPolicyServedByADirectWriter | `static void SeedWithDocumentsOnARegionalPolicyServedByADirectWriter(this TestUnitOfWork uow, string docStatusCode, DateTime docDate, int numberOfDocs)` | Performs the `SeedWithDocumentsOnARegionalPolicyServedByADirectWriter` operation.* |
| SeedWithDocumentsOnAPolicyServedByAnExternalAgent | `static void SeedWithDocumentsOnAPolicyServedByAnExternalAgent(this TestUnitOfWork uow, string docStatusCode, DateTime docDate, int numberOfDocs)` | Performs the `SeedWithDocumentsOnAPolicyServedByAnExternalAgent` operation.* |
| SeedForDocumentTesting | `static TestUnitOfWork SeedForDocumentTesting(this TestUnitOfWork uow)` | Performs the `SeedForDocumentTesting` operation.* |
| GetDocStatus | `static DocumentStatusCode GetDocStatus(TestUnitOfWork uow, string code)` | Retrieves doc status.* |
| Seed | `static void Seed(this IRepository<DocumentStatusCode> repo)` | Performs the `Seed` operation.* |
| Seed | `static void Seed(this IRepository<OutputDocumentCategoryCode> repo)` | Performs the `Seed` operation.* |
| Seed | `static void Seed(this IRepository<ImageCategoryCode> repo)` | Performs the `Seed` operation.* |
| Seed | `static void Seed(this IRepository<ImageDocumentTypeCode> repo, IRepository<ImageCategoryCode> imageCategoryRepo)` | Performs the `Seed` operation.* |
| Seed | `static void Seed(this IRepository<OutputDocumentNotifyTextCode> repo)` | Performs the `Seed` operation.* |
| Seed | `static void Seed(this IRepository<OutputDocumentTypeCode> repo, IRepository<OutputDocumentCategoryCode> catRepo, IRepository<ImageDocumentTypeCode> imageDocTypeRepo, IRepository<OutputDocumentNotifyTextCode> notifyTextRepo)` | Performs the `Seed` operation.* |
| Seed | `static void Seed(this IRepository<EndorseCode> repo, IRepository<OutputDocumentTypeCode> outputDocumentTypeCodeRepo)` | Performs the `Seed` operation.* |
| GeneratePacket | `static TestUnitOfWork GeneratePacket(this TestUnitOfWork uow, PacketGenerationConfig config)` | Performs the `GeneratePacket` operation.* |
| AddDocumentWithReleaseDateAndImageId | `static void AddDocumentWithReleaseDateAndImageId( this TestUnitOfWork uow, Policy policy, DateTime policyPeriod, string documentTypeCode, DateTime documentDate, DateTime releaseDate, string documentStatusCode, string taskUser)` | Adds document with release date and image id.* |
| GeneratePacket | `static void GeneratePacket( this TestUnitOfWork uow, DateTime docDate, Policy policy, DateTime period, string docStatus, string primaryType, string secondaryType, int packetCount = 8, int nonPacketDocCount = 0, string taskUser = "")` | Performs the `GeneratePacket` operation.* |
| AddDocumentWithCreateUpdateAndReleaseDatesSameAsDocDate | `static void AddDocumentWithCreateUpdateAndReleaseDatesSameAsDocDate( this TestUnitOfWork uow, string type, Policy policy, DateTime docDate, DateTime period, string status, string taskUser = "", string sourceKeyText = "")` | Adds document with create update and release dates same as doc date.* |
| AddDocumentWithReleaseDateSameAsDocDate | `static void AddDocumentWithReleaseDateSameAsDocDate( this TestUnitOfWork uow, DateTime createAndUpdateDate, string documentTypeCode, Policy policy, DateTime docDate, DateTime period, string status, string taskUser, string sourceKeyText = "")` | Adds document with release date same as doc date.* |
| AddDocuments | `static void AddDocuments(this TestUnitOfWork uow, DateTime docDate, Policy policy, DateTime period, string docStatus, long agencyId = 0, int numberOfDocsToAdd = 4)` | Adds documents.* |
| AddAgencyViewableDocuments | `static void AddAgencyViewableDocuments(this TestUnitOfWork uow, DateTime docDate, Policy policy, DateTime period, string docStatus, string notifyTextCode, int numberOfDocsToAdd = 4)` | Adds agency viewable documents.* |
| AddDocument | `static OutputDocument AddDocument( this TestUnitOfWork uow, DateTime createAndUpdateDate, OutputDocumentTypeCode docType, Policy policy, DateTime docDate, DateTime period, string status, string taskUser = "", string sourceKeyText = "")` | Adds document.* |

## 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/PolicyOutputDocumentExtensions.cs`
