This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +15
-12
lines changed
GitHub.App/ViewModels/GitHubPane
GitHub.Exports.Reactive/ViewModels/GitHubPane
test/GitHub.App.UnitTests/ViewModels/GitHubPane Expand file tree Collapse file tree 7 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ namespace GitHub.ViewModels.GitHubPane
55 /// <summary>
66 /// The view model for the "No Origin Remote" view in the GitHub pane.
77 /// </summary>
8- [ Export ( typeof ( INoOriginRemoteViewModel ) ) ]
8+ [ Export ( typeof ( INoRemoteOriginViewModel ) ) ]
99 [ PartCreationPolicy ( CreationPolicy . NonShared ) ]
10- public class NoOriginRemoteViewModel : PanePageViewModelBase , INoOriginRemoteViewModel
10+ public class NoRemoteOriginViewModel : PanePageViewModelBase , INoRemoteOriginViewModel
1111 {
1212 }
1313}
Original file line number Diff line number Diff line change 33 /// <summary>
44 /// Defines the view model for the "No Origin Remote" view in the GitHub pane.
55 /// </summary>
6- public interface INoOriginRemoteViewModel : IPanePageViewModel
6+ public interface INoRemoteOriginViewModel : IPanePageViewModel
77 {
88 }
99}
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ public static class Guids
4141 public static readonly Guid CommandSetGuid = new Guid ( CommandSetString ) ;
4242
4343 // Callout notification IDs
44- public static readonly Guid NoOriginRemoteCalloutId = new Guid ( "B5679412-58A1-49CD-96E9-8F093FE3DC79" ) ;
44+ public static readonly Guid NoRemoteOriginCalloutId = new Guid ( "B5679412-58A1-49CD-96E9-8F093FE3DC79" ) ;
4545 }
4646}
Original file line number Diff line number Diff line change 3131 </ItemGroup >
3232
3333 <ItemGroup >
34- <Compile Update =" Views\GitHubPane\NoOriginRemoteView .xaml.cs" >
35- <DependentUpon >%(Filename) </DependentUpon >
34+ <Compile Update =" Views\GitHubPane\NoRemoteOriginView .xaml.cs" >
35+ <DependentUpon >NoRemoteOriginView.xaml </DependentUpon >
3636 </Compile >
3737 </ItemGroup >
3838</Project >
Original file line number Diff line number Diff line change 1- <local : GenericNoOriginRemoteView x : Class =" GitHub.VisualStudio.Views.GitHubPane.NoOriginRemoteView "
1+ <local : GenericNoRemoteOriginView x : Class =" GitHub.VisualStudio.Views.GitHubPane.NoRemoteOriginView "
22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
4141 </TextBlock >
4242 </StackPanel >
4343 </DockPanel >
44- </local : GenericNoOriginRemoteView >
44+ </local : GenericNoRemoteOriginView >
Original file line number Diff line number Diff line change 55
66namespace GitHub . VisualStudio . Views . GitHubPane
77{
8- public class GenericNoOriginRemoteView : ViewBase < INoOriginRemoteViewModel , GenericNoOriginRemoteView >
8+ public class GenericNoRemoteOriginView : ViewBase < INoRemoteOriginViewModel , GenericNoRemoteOriginView >
99 {
1010 }
1111
12- [ ExportViewFor ( typeof ( INoOriginRemoteViewModel ) ) ]
12+ [ ExportViewFor ( typeof ( INoRemoteOriginViewModel ) ) ]
1313 [ PartCreationPolicy ( CreationPolicy . NonShared ) ]
14- public partial class NoOriginRemoteView : GenericNoOriginRemoteView
14+ public partial class NoRemoteOriginView : GenericNoRemoteOriginView
1515 {
16- public NoOriginRemoteView ( )
16+ public NoRemoteOriginView ( )
1717 {
1818 InitializeComponent ( ) ;
1919 }
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ static GitHubPaneViewModel CreateTarget(
190190 ILoggedOutViewModel loggedOut = null ,
191191 INotAGitHubRepositoryViewModel notAGitHubRepository = null ,
192192 INotAGitRepositoryViewModel notAGitRepository = null ,
193+ INoRemoteOriginViewModel noRemoteOriginViewModel = null ,
193194 ILoginFailedViewModel loginFailed = null )
194195 {
195196 viewModelFactory = viewModelFactory ?? Substitute . For < IViewViewModelFactory > ( ) ;
@@ -200,6 +201,7 @@ static GitHubPaneViewModel CreateTarget(
200201 loggedOut = loggedOut ?? Substitute . For < ILoggedOutViewModel > ( ) ;
201202 notAGitHubRepository = notAGitHubRepository ?? Substitute . For < INotAGitHubRepositoryViewModel > ( ) ;
202203 notAGitRepository = notAGitRepository ?? Substitute . For < INotAGitRepositoryViewModel > ( ) ;
204+ noRemoteOriginViewModel = noRemoteOriginViewModel ?? Substitute . For < INoRemoteOriginViewModel > ( ) ;
203205 loginFailed = loginFailed ?? Substitute . For < ILoginFailedViewModel > ( ) ;
204206
205207 if ( navigator == null )
@@ -235,6 +237,7 @@ static GitHubPaneViewModel CreateTarget(
235237 loggedOut ,
236238 notAGitHubRepository ,
237239 notAGitRepository ,
240+ noRemoteOriginViewModel ,
238241 loginFailed ) ;
239242 }
240243
You can’t perform that action at this time.
0 commit comments