Example #1
0
        public async Task ExecuteAsync()
        {
            Classification.PaymentClassification pc = MakeClassification();
            IPaymentSchedule ps = MakeSchedule();
            IPaymentMethod   pm = new HoldMethod();
            Employee         e  = new Employee(EmpId, Name, Address);

            e.Classification = pc;
            e.Schedule       = ps;
            e.Method         = pm;

            await PayrollDatabase.AddEmployeeAsync(EmpId, e);
        }