示例#1
0
        public void Can_Update_Settings()
        {
            WorkflowSettingsPoco settings = _repo.GetSettings();
            string defaultApprover        = settings.DefaultApprover;

            settings.DefaultApprover = "15";

            _repo.UpdateSettings(settings);

            settings = _repo.GetSettings();

            Assert.NotEqual(defaultApprover, settings.DefaultApprover);
        }
示例#2
0
 /// <summary>
 /// Update the workflow settings
 /// </summary>
 /// <param name="settings"></param>
 /// <returns></returns>
 public void UpdateSettings(WorkflowSettingsPoco settings)
 {
     _repo.UpdateSettings(settings);
     Updated?.Invoke(this, new SettingsEventArgs(settings));
 }
示例#3
0
 /// <summary>
 /// Update the workflow settings
 /// </summary>
 /// <param name="settings"></param>
 /// <returns></returns>
 public void UpdateSettings(WorkflowSettingsPoco settings)
 {
     _repo.UpdateSettings(settings);
 }