Пример #1
0
 public void setup()
 {
     _validator = new InfoValidator();
 }
Пример #2
0
        public void setup()
        {
            string requestJson = @"{'name':'Brandon DSouza',
                        'deskOrientation':0,
                        'current':{
                            'bazookaInfo':
                                { 'jobTitle':'Intern',
                                'department':'IT',
                                'group':'Unknown',
                                'managerId':'Joe Kolodz',
                                'jobTemplate':'IT Intern'},
                            'ultiproInfo':
                                {'jobTitle':'Intern',
                                'department':'IT',
                                'group':'Unknown',
                                'supervisor':'Joe Kolodz',
                                'other':''},
                            'deskInfo':
                                {'deskNumber':'5-13',
                                'office':'34658df'},
                            'phoneInfo':
                                {'phoneNumber':'|1|8472357349|7349|'}
                        },
                        '$$hashKey':'007',
                        'future':
                            {'bazookaInfo':
                                {'jobTitle':'President',
                                'department':'Human Resources',
                                'group':'T7',
                                'managerId':'Joe Kolodz',
                                'jobTemplate':'3476sdf',
                                'securityItemRights':'324dfgrt'},
                            'deskInfo':
                                {'deskNumber':'sdf345345',
                                'office':'df3445645'},
                            'ultiproInfo':
                                {'jobTitle':'sdf',
                                'department':'5dfsdf',
                                'supervisor': 'Joe Kolodz',
                                'other':'sdf23342'},
                            'phoneInfo':
                                {'phoneNumber':'4234234234234'}},
                        'emailInfo':
                            {'groupsToBeAddedTo':'fdsf34545vf',
                            'groupsToBeRemovedFrom':'345fgf'},
                        'ReviewInfo':
                            {'filesToBeAddedTo':'sdfsdfgf',
                             'filesToBeRemovedFrom':'34345'}}";

            _reqObject = JObject.Parse(requestJson);
            //_deskObject = JObject.Parse(
            _deskController = new DeskController();
            _requestController = new RequestFormController();
            _validator = new InfoValidator();
        }
Пример #3
0
 public void setup()
 {
     _deskNum = "THX1138";
     _topLeftX = 0;
     _topLeftY = 1;
     _orient = 0;
     _floorNum = 5;
     _empID = 117;
     _testDesk = new DeskDB();
     _validator = new InfoValidator();
     _testDesk.InsertInformationIntoDeskDB(_deskNum, _topLeftX, _topLeftY, _orient, _floorNum, _empID);
 }