Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtwist committed Feb 7, 2021
1 parent c5945cd commit db994e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unittests-ruleng/WorkItemStoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public async Task NewWorkItem_Succeeds()

var wi = sut.NewWorkItem("Task");
wi.Title = "Brand new";
var save = await sut.SaveChanges(SaveMode.Default, false, false, CancellationToken.None);
var save = await sut.SaveChanges(SaveMode.Default, false, false, false, CancellationToken.None);

Assert.NotNull(wi);
Assert.True(wi.IsNew);
Expand Down Expand Up @@ -320,7 +320,7 @@ async public void UpdateWorkItem_WithRevisionCheck_Enabled_Succeeds()
var wrapper = sut.GetWorkItem(workItemId);
wrapper.Title = "Replaced title";

var result = await sut.SaveChanges(SaveMode.Default, commit: true, impersonate: false, default);
var result = await sut.SaveChanges(SaveMode.Default, commit: true, impersonate: false, bypassrules: false, default);

Assert.Equal(0, result.created);
Assert.Equal(1, result.updated);
Expand Down Expand Up @@ -362,7 +362,7 @@ async public void UpdateWorkItem_WithRevisionCheck_Disabled_Succeeds()
var wrapper = sut.GetWorkItem(workItemId);
wrapper.Title = "Replaced title";

var result = await sut.SaveChanges(SaveMode.Default, commit: true, impersonate: false, default);
var result = await sut.SaveChanges(SaveMode.Default, commit: true, impersonate: false, bypassrules: false, default);

Assert.Equal(0, result.created);
Assert.Equal(1, result.updated);
Expand Down

0 comments on commit db994e3

Please sign in to comment.