public ProtocolRequestAddController(IProtocolRequestAddView view) { this.view = view; this.view.SetController(this); this.sponsorContacts = new ArrayList(); this.request = new ProtocolRequest(); this.requestFormController = new RequestFormController(this.view.GetRequestForm); this.loginInfo = LoginInfo.GetInstance(); this.selectedTemplates = new ArrayList(); }
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(); }
public void SetController(RequestFormController controller) { this.controller = controller; }