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); }
/// <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)); }
/// <summary> /// Update the workflow settings /// </summary> /// <param name="settings"></param> /// <returns></returns> public void UpdateSettings(WorkflowSettingsPoco settings) { _repo.UpdateSettings(settings); }