예제 #1
0
        public void Setup()
        {
            _databaseSetup = new DatabaseSetup();
            _databaseSetup.CleanDatabase();
            _databaseSetup.CreateStandardDatabase();
            _cigr     = new CustomerInvoiceGroupRepository(_databaseSetup.GetTrexConnection);
            _customer = _databaseSetup.CreateCustomer(2, "testCustomer", "*****@*****.**", "CustomerContact", "TestCustomerVej",
                                                      "TestCustomerCity", "TestCustomerLand", "7777");

            _databaseSetup.CreateCustomerInvoiceGroup(2, 2, "TestCig", false, 1, "TestCigMail", "TestCigMailCC", "TestCigAttention",
                                                      "TestCigvej1", "TestCigVej2", "TestCigCity", "TestCigLand", "8888");

            _databaseSetup.CreateCustomerInvoiceGroup(3, 2, "TestCig2", false, 1, null, null, null, null, null, null, null, null);
        }
예제 #2
0
        public void GetMetaData()
        {
            _databaseSetup.CreateCustomerInvoiceGroup(15, 1, "Laban", true, 1, "mail", "ccmail", "attention", "address1",
                                                      "adress2", "City", "Country", "ZIP");

            var cig = _gather.GetMetaData(15);

            Assert.AreEqual("Country", cig.Country);
            Assert.AreEqual("attention", cig.Attention);
        }