public void AddInvoiceHeader()
        {
            var testDbSet = new TestDbSet<InvoiceHeader>(_dataCollection);
            var testInvoiceHeaderDao = new TestInvoiceHeaderDao(testDbSet);

            var invoiceHeaderToAdd = new InvoiceHeader
            {
                Id = 4,
                Customer = "TestCustomer3",
                InvoiceDateTime = DateTime.MinValue,
                InvoiceNumber = 5,
                Supplier = "TestSupplier3",
                Tax = 80,
                Total = 9000
            };

            testInvoiceHeaderDao.Write(invoiceHeaderToAdd);

            Assert.IsTrue(testDbSet.DataCollection.Contains(invoiceHeaderToAdd));
        }
        public void DeleteInvoiceHeader()
        {
            var testDbSet = new TestDbSet<InvoiceHeader>(_dataCollection);
            var testInvoiceHeaderDao = new TestInvoiceHeaderDao(testDbSet);

            var invoiceHeaderToRemove = new InvoiceHeader
            {
                Id = 1,
                Customer = "TestCustomer",
                InvoiceDateTime = DateTime.MinValue,
                InvoiceNumber = 1,
                Supplier = "TestSupplier",
                Tax = 0,
                Total = 100
            };

            testInvoiceHeaderDao.Delete(invoiceHeaderToRemove);

            Assert.IsFalse(testDbSet.DataCollection.Contains(invoiceHeaderToRemove));
        }
        public void GetInvoiceHeaderByInvoiceId()
        {
            var testDbSet = new TestDbSet<InvoiceHeader>(_dataCollection);
            var testInvoiceHeaderDao = new TestInvoiceHeaderDao(testDbSet);

            var invoiceHeader = testInvoiceHeaderDao.GetByInvoiceId(2);

            Assert.IsFalse(invoiceHeader == null);
        }