workAssignmentActivate() public method

Activate work order. Assumes start at WA ListTab.
public workAssignmentActivate ( Employer _emp, WorkOrder _wo, WorkAssignment _wa ) : bool
_emp Employer
_wo WorkOrder
_wa WorkAssignment
return bool
示例#1
0
        public async Task SeEmployer_Create_and_Activate_WorkAssignment()
        {
            //Arrange
            var _employer1 = frb.CloneEmployer();
            var _wo        = frb.CloneWorkOrder();
            var _wa1       = frb.CloneWorkAssignment();

            _wo.contactName = ui.RandomString(10);
            _wo.statusID    = HttpClientUtil.GetLookup(LCategory.orderstatus, LOrderStatus.Pending); // status = pending
            //
            // Create employer
            ui.employerCreate(_employer1);
            // Create work order
            ui.workOrderCreate(_employer1, _wo);
            // create assignment
            ui.workAssignmentCreate(_employer1, _wo, _wa1, frb);
            //Get WA ID and arrange pseudoID information
            //_wa1.workOrder = _wo;
            _wa1.workOrderID = _wo.ID;
            // pseudoID needs to be updated; created on save above
            _wa1.pseudoID = await HttpClientUtil.GetWorkAssignment(_wa1.ID);

            // Activate assignment
            ui.workAssignmentActivate(_employer1, _wo, _wa1);
            //
            ui.workAssignmentValidate(_employer1, _wo, _wa1);
            ui.workOrderValidate(_wo);
            // TODO: Selenium: test duplicate (pseudoID increment is visible in table)
            // TODO: Selenium: test DispatchOption / Change Worker dialog.
            // TODO: Selenium: test Skill dropdown for Chambita/specialized skill, test total changes
        }