Beispiel #1
0
 public void Setup()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _timeEntryService = new TimeEntryService(_databaseSetup.GetTrexConnection);
 }
Beispiel #2
0
 public void Setup()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _cigr = new CustomerInvoiceGroupRepository(_databaseSetup.GetTrexConnection);
 }
Beispiel #3
0
 public void Setup()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _projectService = new ProjectService(_databaseSetup.GetTrexConnection);
 }
Beispiel #4
0
 public void Setup()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _customerServices = new CustomerServices(_databaseSetup.GetTrexConnection);
 }
Beispiel #5
0
 public void Setup()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _invoiceTemplate = new InvoiceTemplate();
     _templateService = new TemplateService(_databaseSetup.GetTrexConnection);
 }
Beispiel #6
0
 public void Initialize()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _invoiceServiceMock = new InvoiceService(_databaseSetup.GetTrexConnection);
     _gather             = new GatherData(_invoiceServiceMock, _databaseSetup.GetTrexConnection);
 }
Beispiel #7
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);
        }
Beispiel #8
0
 public void Setup()
 {
     _databaseSetup = new DatabaseSetup();
     _databaseSetup.CleanDatabase();
     _databaseSetup.CreateStandardDatabase();
     _cigr     = new CustomerInvoiceGroupRepository(_databaseSetup.GetTrexConnection);
     _customer = new Customer
     {
         City          = "TestCity",
         StreetAddress = "TestVej",
         Address2      = "TestVej2",
         ContactName   = "Lls",
         ZipCode       = "8210",
         Country       = "TestLand",
         SendFormat    = 2,
         Email         = "*****@*****.**",
         EmailCC       = "*****@*****.**",
         CustomerID    = 1
     };
 }