public void DotMemoryUnitTest()
        {
            var repo = new InvoiceLineRepository();

            repo.GetAll();

            dotMemory.Check(memory =>
                            Assert.Equal(1, memory.GetObjects(where => where.Type.Is <InvoiceLine>()).ObjectsCount));

            GC.KeepAlive(repo); // prevent objects from GC if this is implied by test logic
        }
Exemplo n.º 2
0
 public SchemaRepositoryContainer()
 {
     #region Entity Repositories
     Invoice     = new InvoiceRepository();
     InvoiceLine = new InvoiceLineRepository();
     OrderDetail = new OrderDetailRepository();
     #endregion
     #region Store Procedure Repository
     StoredProcs = new StoredProcRepository();
     #endregion
     // If not implemented this method is removed during compilation
     LoadCustomRepositories();
 }
Exemplo n.º 3
0
 public SchemaRepositoryContainer()
 {
     #region Entity Repositories
     BuyingGroup                = new BuyingGroupRepository();
     BuyingGroups_Archive       = new BuyingGroups_ArchiveRepository();
     CustomerCategory           = new CustomerCategoryRepository();
     CustomerCategories_Archive = new CustomerCategories_ArchiveRepository();
     Customer            = new CustomerRepository();
     Customers_Archive   = new Customers_ArchiveRepository();
     CustomerTransaction = new CustomerTransactionRepository();
     InvoiceLine         = new InvoiceLineRepository();
     Invoice             = new InvoiceRepository();
     OrderLine           = new OrderLineRepository();
     Order       = new OrderRepository();
     SpecialDeal = new SpecialDealRepository();
     #endregion
     // If not implemented this method is removed during compilation
     LoadCustomRepositories();
 }
 public InvoiceLineRepositoryTest()
 {
     _repo = new InvoiceLineRepository();
 }