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

Commit da21ea7

Browse files
committed
Rename NoOriginRemote to NoRemoteOrigin
I think this maybe reads better.
1 parent 40273b7 commit da21ea7

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

src/GitHub.App/ViewModels/GitHubPane/NoOriginRemoteViewModel.cs renamed to src/GitHub.App/ViewModels/GitHubPane/NoRemoteOriginViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/GitHub.Exports.Reactive/ViewModels/GitHubPane/INoOriginRemoteViewModel.cs renamed to src/GitHub.Exports.Reactive/ViewModels/GitHubPane/INoRemoteOriginViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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
}

src/GitHub.Exports/Settings/Guids.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/GitHub.VisualStudio.UI/GitHub.VisualStudio.UI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
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>

src/GitHub.VisualStudio.UI/Views/GitHubPane/NoOriginRemoteView.xaml renamed to src/GitHub.VisualStudio.UI/Views/GitHubPane/NoRemoteOriginView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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"
@@ -41,4 +41,4 @@
4141
</TextBlock>
4242
</StackPanel>
4343
</DockPanel>
44-
</local:GenericNoOriginRemoteView>
44+
</local:GenericNoRemoteOriginView>

src/GitHub.VisualStudio.UI/Views/GitHubPane/NoOriginRemoteView.xaml.cs renamed to src/GitHub.VisualStudio.UI/Views/GitHubPane/NoRemoteOriginView.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
namespace 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
}

test/GitHub.App.UnitTests/ViewModels/GitHubPane/GitHubPaneViewModelTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)