using Centron.Data.Entities.Accounts; using FluentNHibernate.Mapping; namespace Centron.Tests.BL.DatabaseMappings { /// /// IMPORTANT: This is a replacement class for the real class for running in-memory unit tests. /// This test mapping includes only the columns needed for the tests. /// Make sure to keep this class in sync with the columns needed for your tests. /// public class AccountSupplierMapsForTest : ClassMap { public AccountSupplierMapsForTest() { Table("AccountSuppliers"); Id(m => m.I3D).Column("I3D").GeneratedBy.Assigned(); Map(m => m.Number).Column("Number"); // Basic columns that might be needed for tests Map(m => m.BookKeepingNumber).Column("BookKeepingNumber").Length(64).Nullable(); Map(m => m.OwnCustomerNumber).Column("OwnCustomerNumber").Length(20).Nullable(); // Note: Other columns and reference mappings are intentionally omitted // for test purposes to keep the mapping simple } } }