This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
test/GitHub.App.UnitTests/ViewModels
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/GitHub.App.UnitTests/ViewModels/Dialog/Clone/RepositorySelectViewModelTests.cs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -113,7 +113,7 @@ static IRepositoryCloneService CreateRepositoryCloneService( |
113 | 113 |
|
114 | 114 | var viewRepositoriesModel = CreateViewerRepositoriesModel(contributedToRepositories: contributedToRepositories); |
115 | 115 | var repositoryCloneService = Substitute.For<IRepositoryCloneService>(); |
116 | | - repositoryCloneService.ReadViewerRepositories(hostAddress).Returns(viewRepositoriesModel); |
| 116 | + repositoryCloneService.ReadViewerRepositories(hostAddress, Arg.Any<bool>()).Returns(viewRepositoriesModel); |
117 | 117 | return repositoryCloneService; |
118 | 118 | } |
119 | 119 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/GitHub.App.UnitTests/ViewModels/GitHubPane/IssueListViewModelBaseTests.cs +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | using System; |
2 | 2 | using System.Collections.Generic; |
| 3 | +using System.Globalization; |
3 | 4 | using System.Linq; |
| 5 | +using System.Reactive; |
4 | 6 | using System.Reactive.Linq; |
| 7 | +using System.Reactive.Subjects; |
| 8 | +using System.Reactive.Threading.Tasks; |
5 | 9 | using System.Threading.Tasks; |
| 10 | +using GitHub; |
6 | 11 | using GitHub.Collections; |
7 | 12 | using GitHub.Models; |
8 | 13 | using GitHub.Primitives; |
@@ -172,12 +177,8 @@ public Target(IRepositoryService repositoryService, int itemCount) |
172 | 177 |
|
173 | 178 | public override IReadOnlyList<string> States { get; } = new[] { "Open", "Closed" }; |
174 | 179 |
|
175 | | - protected IVirtualizingListSource<IIssueListItemViewModelBase> CreateItemSource() => ItemSource; |
176 | | - |
177 | 180 | protected override Task<IVirtualizingListSource<IIssueListItemViewModelBase>> CreateItemSource(bool refresh) |
178 | | - { |
179 | | - throw new NotImplementedException(); |
180 | | - } |
| 181 | + => Task.FromResult(ItemSource); |
181 | 182 |
|
182 | 183 | protected override Task DoOpenItem(IIssueListItemViewModelBase item) |
183 | 184 | { |
|