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

Commit 33404f1

Browse files
committed
Removed unneeded dependency.
1 parent 29df9b2 commit 33404f1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/GitHub.App/ViewModels/Dialog/LoginToGitHubForEnterpriseViewModel.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,28 @@ namespace GitHub.ViewModels.Dialog
2121
[PartCreationPolicy(CreationPolicy.NonShared)]
2222
public class LoginToGitHubForEnterpriseViewModel : LoginTabViewModel, ILoginToGitHubForEnterpriseViewModel
2323
{
24-
readonly ISimpleApiClientFactory apiClientFactory;
2524
readonly IEnterpriseCapabilitiesService enterpriseCapabilities;
2625

2726
[ImportingConstructor]
2827
public LoginToGitHubForEnterpriseViewModel(
2928
IConnectionManager connectionManager,
30-
ISimpleApiClientFactory apiClientFactory,
3129
IEnterpriseCapabilitiesService enterpriseCapabilities,
3230
IVisualStudioBrowser browser)
33-
: this(connectionManager, apiClientFactory, enterpriseCapabilities, browser, Scheduler.Default)
31+
: this(connectionManager, enterpriseCapabilities, browser, Scheduler.Default)
3432
{
3533
}
3634

3735
public LoginToGitHubForEnterpriseViewModel(
3836
IConnectionManager connectionManager,
39-
ISimpleApiClientFactory apiClientFactory,
4037
IEnterpriseCapabilitiesService enterpriseCapabilities,
4138
IVisualStudioBrowser browser,
4239
IScheduler scheduler)
4340
: base(connectionManager, browser)
4441
{
4542
Guard.ArgumentNotNull(connectionManager, nameof(connectionManager));
46-
Guard.ArgumentNotNull(apiClientFactory, nameof(apiClientFactory));
4743
Guard.ArgumentNotNull(enterpriseCapabilities, nameof(enterpriseCapabilities));
4844
Guard.ArgumentNotNull(browser, nameof(browser));
4945

50-
this.apiClientFactory = apiClientFactory;
5146
this.enterpriseCapabilities = enterpriseCapabilities;
5247

5348
EnterpriseUrlValidator = ReactivePropertyValidator.For(this, x => x.EnterpriseUrl)

test/UnitTests/GitHub.App/ViewModels/Dialog/LoginToGitHubForEnterpriseViewModelTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ static LoginToGitHubForEnterpriseViewModel CreateTarget(
220220
{
221221
return new LoginToGitHubForEnterpriseViewModel(
222222
Substitute.For<IConnectionManager>(),
223-
Substitute.For<ISimpleApiClientFactory>(),
224223
capabilitiesService ?? Substitute.For<IEnterpriseCapabilitiesService>(),
225224
Substitute.For<IVisualStudioBrowser>(),
226225
scheduler ?? Scheduler.Immediate);

0 commit comments

Comments
 (0)