コード例 #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ResQYttriumWebApiModelsResultModel> UpdateAsync(this ICaseModel operations, ResQYttriumWebApiModelsUpdateCaseModel model, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 private ModelFactory()
 {
     _tcApi               = new TCApi();
     _logInModel          = new LogInModel(_tcApi);
     _homeModel           = new HomeModel(_tcApi);
     _userPreference      = new UserPreference(_tcApi);
     _settingsModel       = new SettingsModel();
     _createUserModel     = new CreateUserModel(_tcApi);
     _createCaseModel     = new CreateCaseModel(_tcApi);
     _caseModel           = new CaseModel(_tcApi);
     _changePasswordModel = new ChangePasswordModel(_tcApi);
     _mapModel            = new MapModel(_tcApi);
     _trafficLightModel   = new TrafficLightOverviewModel(_tcApi);
 }
コード例 #3
0
 public CasePresenter(ICaseView view, ICaseModel model)
 {
     _view  = view;
     _model = model;
 }
コード例 #4
0
 public void Init()
 {
     _fakeView  = Substitute.For <ICaseView>();
     _fakeModel = Substitute.For <ICaseModel>();
     _uut       = new CasePresenter(_fakeView, _fakeModel);
 }
コード例 #5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static ResQYttriumWebApiModelsAddCaseCommentResultModel AddCaseComment(this ICaseModel operations, ResQYttriumWebApiModelsAddCaseCommentModel model)
 {
     return(Task.Factory.StartNew(s => ((ICaseModel)s).AddCaseCommentAsync(model), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }