mirror of
https://github.com/bitwarden/server
synced 2026-02-18 18:33:29 +00:00
Use IHttpClientFactory in more places
This commit is contained in:
@@ -31,12 +31,18 @@ public class FreshsalesControllerTests
|
||||
var globalSettings = new GlobalSettings();
|
||||
globalSettings.BaseServiceUri.Admin = "https://test.com";
|
||||
|
||||
var httpClientFactory = Substitute.For<IHttpClientFactory>();
|
||||
httpClientFactory
|
||||
.CreateClient("Freshsales")
|
||||
.Returns(new HttpClient());
|
||||
|
||||
var sut = new FreshsalesController(
|
||||
userRepository,
|
||||
organizationRepository,
|
||||
billingSettings,
|
||||
Substitute.For<ILogger<FreshsalesController>>(),
|
||||
globalSettings
|
||||
globalSettings,
|
||||
httpClientFactory
|
||||
);
|
||||
|
||||
return (sut, userRepository, organizationRepository);
|
||||
|
||||
Reference in New Issue
Block a user