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 }
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(); }
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(); }