Skip to content

Commit

Permalink
re-arrange the logic variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjanjua committed Jan 10, 2025
1 parent eb7b75f commit 01aa06c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class ConnectorsBusinessLogicTests
private readonly IUserRepository _userRepository;
private readonly IPortalRepositories _portalRepositories;
private readonly ISdFactoryBusinessLogic _sdFactoryBusinessLogic;
private ConnectorsBusinessLogic _logic;
private readonly ConnectorsBusinessLogic _logic;
private readonly IDocumentRepository _documentRepository;
private readonly ITechnicalUserRepository _technicalUserRepository;
private readonly IIdentityService _identityService;
Expand Down Expand Up @@ -759,7 +759,7 @@ public async Task DeleteConnectorAsync_WithActiveAndWithoutDocumentId_ExpectedCa
var options = A.Fake<IOptions<ConnectorsSettings>>();
var settings = new ConnectorsSettings { ClearinghouseConnectDisabled = true };
A.CallTo(() => options.Value).Returns(settings);
_logic = new ConnectorsBusinessLogic(_portalRepositories, options, _sdFactoryBusinessLogic, _identityService, _serviceAccountManagement, A.Fake<ILogger<ConnectorsBusinessLogic>>());
var sut = new ConnectorsBusinessLogic(_portalRepositories, options, _sdFactoryBusinessLogic, _identityService, _serviceAccountManagement, A.Fake<ILogger<ConnectorsBusinessLogic>>());
var connectorOfferSubscriptions = new[] {
new ConnectorOfferSubscription(_fixture.Create<Guid>(), OfferSubscriptionStatusId.PENDING),
new ConnectorOfferSubscription(_fixture.Create<Guid>(), OfferSubscriptionStatusId.PENDING),
Expand All @@ -768,7 +768,7 @@ public async Task DeleteConnectorAsync_WithActiveAndWithoutDocumentId_ExpectedCa
.Returns(new DeleteConnectorData(true, null, null, ConnectorStatusId.ACTIVE, connectorOfferSubscriptions, UserStatusId.ACTIVE, Guid.NewGuid(), _fixture.Create<DeleteServiceAccountData>()));

// Act
await _logic.DeleteConnectorAsync(connectorId, true);
await sut.DeleteConnectorAsync(connectorId, true);

// Assert
A.CallTo(() => _connectorsRepository.GetConnectorDeleteDataAsync(connectorId, _identity.CompanyId, A<IEnumerable<ProcessStepTypeId>>._)).MustHaveHappenedOnceExactly();
Expand Down

0 comments on commit 01aa06c

Please sign in to comment.