Example #1
0
        private void CheckSavedScheduleCode(PaymentSchedule schedule, string expectedCode)
        {
            employee.Schedule = schedule;
            database.AddEmployee(employee);

            var table = LoadTable("Employee");
            var row   = table.Rows[0];

            Assert.AreEqual(expectedCode, row["ScheduleType"]);
        }
        public void AddEmployee()
        {
            database.AddEmployee(this.employee);

            DataTable table = LoadTable("Employee");

            Assert.AreEqual(1, table.Rows.Count);
            DataRow row = table.Rows[0];

            Assert.AreEqual(123, row["EmpId"]);
            Assert.AreEqual("George", row["Name"]);
            Assert.AreEqual("123 Baker St.", row["Address"]);
        }