Ejemplo n.º 1
0
        public void SetUp()
        {
            database   = new SqlPayrollDatabase();
            connection = new SqlConnection(@"Server=.\SQLEXPRESS;Database=Payroll;Trusted_Connection=True");
            connection.Open();

            ClearTables();

            employee                = new Employee(123, "George", "123 Baker St.");
            employee.Schedule       = new MonthlySchedule();
            employee.Method         = new DirectDepositMethod("Bank Of PPP", "27182718");
            employee.Classification = new SalariedClassification(1000.00);
        }
        public void SetUp()
        {
            database   = new SqlPayrollDatabase();
            connection = new SqlConnection("Initial Catalog=Payroll;Data Source=localhost;user id=sa;password=abc");
            connection.Open();

            ClearTables();

            employee                = new Employee(123, "George", "123 Baker St.");
            employee.Schedule       = new MonthlySchedule();
            employee.Method         = new DirectDepositMethod("Bank Of PPP", "27182718");
            employee.Classification = new SalariedClassification(1000.00);
        }