Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4e3cbf8

Browse files
committed
IResettable missing from the vm
1 parent c0c6fa8 commit 4e3cbf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitHub.App/ViewModels/PullRequestCreationViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace GitHub.ViewModels
2626
[ExportViewModel(ViewType = UIViewType.PRCreation)]
2727
[PartCreationPolicy(CreationPolicy.NonShared)]
2828
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
29-
public class PullRequestCreationViewModel : BaseViewModel, IPullRequestCreationViewModel, IDisposable
29+
public class PullRequestCreationViewModel : BaseViewModel, IPullRequestCreationViewModel, IDisposable, IResettable
3030
{
3131
static readonly Logger log = LogManager.GetCurrentClassLogger();
3232

src/UnitTests/GitHub.App/Controllers/UIControllerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ void ResetIsCalled()
758758
Assert.Equal(5, count);
759759

760760
var vm = provider.GetExportFactoryProvider().GetViewModel(GitHub.Exports.UIViewType.PRCreation).Value;
761-
//Assert.Equal(2, vm.ReceivedCalls().Where(x => x.GetMethodInfo().Name == nameof(IViewModel.Reset)).Count());
761+
Assert.Equal(2, vm.ReceivedCalls().Where(x => x.GetMethodInfo().Name == nameof(IResettable.Reset)).Count());
762762
}
763763
}
764764
}

0 commit comments

Comments
 (0)