@@ -34,13 +34,13 @@ public void TestDependabotProxyCreation1()
3434 // Setup
3535 var config = new DependabotConfigurationStub
3636 {
37- Host = "my.private.server " ,
37+ Host = "localhost " ,
3838 Port = "" ,
3939 } ;
4040
4141 // Execute
4242 using var tempWorkingDirectory = MakeTemporaryDirectory ( ) ;
43- using var proxy = DependabotProxy . MakeAux ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
43+ using var proxy = DependabotProxy . Make ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
4444
4545 // Verify
4646 Assert . Null ( proxy ) ;
@@ -57,7 +57,7 @@ public void TestDependabotProxyCreation2()
5757
5858 // Execute
5959 using var tempWorkingDirectory = MakeTemporaryDirectory ( ) ;
60- using var proxy = DependabotProxy . MakeAux ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
60+ using var proxy = DependabotProxy . Make ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
6161
6262 // Verify
6363 Assert . Null ( proxy ) ;
@@ -103,17 +103,17 @@ public void TestDependabotProxyCertificate()
103103 var config = new DependabotConfigurationStub
104104 {
105105 Port = "8080" ,
106- Host = "my.private.server " ,
106+ Host = "localhost " ,
107107 Certificate = ExampleCertificate
108108 } ;
109109
110110 // Execute
111111 using var tempWorkingDirectory = MakeTemporaryDirectory ( ) ;
112- using var proxy = DependabotProxy . MakeAux ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
112+ using var proxy = DependabotProxy . Make ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
113113
114114 // Verify
115115 Assert . NotNull ( proxy ) ;
116- Assert . Equal ( "http://my.private.server :8080" , proxy . Address ) ;
116+ Assert . Equal ( "http://localhost :8080" , proxy . Address ) ;
117117 Assert . NotNull ( proxy . Certificate ) ;
118118 Assert . NotNull ( proxy . CertificatePath ) ;
119119 }
@@ -125,13 +125,13 @@ public void TestDependabotRegistryUrls1()
125125 var config = new DependabotConfigurationStub
126126 {
127127 Port = "8080" ,
128- Host = "my.private.server " ,
128+ Host = "localhost " ,
129129 RegistryURLs = "Doesn't parse as a JSON list"
130130 } ;
131131
132132 // Execute
133133 using var tempWorkingDirectory = MakeTemporaryDirectory ( ) ;
134- using var proxy = DependabotProxy . MakeAux ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
134+ using var proxy = DependabotProxy . Make ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
135135
136136 // Verify
137137 Assert . NotNull ( proxy ) ;
@@ -145,13 +145,13 @@ public void TestDependabotRegistryUrls2()
145145 var config = new DependabotConfigurationStub
146146 {
147147 Port = "8080" ,
148- Host = "my.private.server " ,
148+ Host = "localhost " ,
149149 RegistryURLs = "[ { \" type\" : \" nuget_feed\" , \" url\" : \" https://nuget.pkg.github.com/org/index.json\" } ]"
150150 } ;
151151
152152 // Execute
153153 using var tempWorkingDirectory = MakeTemporaryDirectory ( ) ;
154- using var proxy = DependabotProxy . MakeAux ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
154+ using var proxy = DependabotProxy . Make ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
155155
156156 // Verify
157157 Assert . NotNull ( proxy ) ;
@@ -167,13 +167,13 @@ public void TestDependabotRegistryUrls3()
167167 var config = new DependabotConfigurationStub
168168 {
169169 Port = "8080" ,
170- Host = "my.private.server " ,
170+ Host = "localhost " ,
171171 RegistryURLs = "[ { \" type\" : \" nuget_feed\" , \" url\" : \" https://example.com/org/index.json\" }, { \" type\" : \" wrong_type\" , \" url\" : \" https://nuget.pkg.github.com/org/index.json\" } ]"
172172 } ;
173173
174174 // Execute
175175 using var tempWorkingDirectory = MakeTemporaryDirectory ( ) ;
176- using var proxy = DependabotProxy . MakeAux ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
176+ using var proxy = DependabotProxy . Make ( config , new LoggerStub ( ) , new DiagnosticsWriterStub ( ) , tempWorkingDirectory ) ;
177177
178178 // Verify
179179 Assert . NotNull ( proxy ) ;
0 commit comments