Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Particular.LicensingComponent.Contracts/UserIndicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public enum UserIndicator
{
NServiceBusEndpoint,
NotNServiceBusEndpoint,
SendOnlyOrTransactionSessionEndpoint,
TransactionalSessionProcessorEndpoint,
SendOnlyEndpoint,
NServiceBusEndpointNoLongerInUse,
PlannedToDecommission
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task Should_return_correct_user_indicators_when_multiple_throughput
await DataStore.CreateBuilder()
.AddEndpoint("Endpoint1", sources: [ThroughputSource.Broker, ThroughputSource.Monitoring])
.ConfigureEndpoint(ThroughputSource.Broker,
endpoint => endpoint.UserIndicator = UserIndicator.SendOnlyOrTransactionSessionEndpoint.ToString())
endpoint => endpoint.UserIndicator = UserIndicator.SendOnlyEndpoint.ToString())
.WithThroughput(ThroughputSource.Broker, days: 2)
.WithThroughput(ThroughputSource.Monitoring, days: 2)
.Build();
Expand All @@ -60,6 +60,6 @@ await DataStore.CreateBuilder()
Assert.That(report.ReportData.Queues.Length, Is.EqualTo(1));

Assert.That(report.ReportData.Queues[0].UserIndicator,
Is.EqualTo(UserIndicator.SendOnlyOrTransactionSessionEndpoint.ToString()));
Is.EqualTo(UserIndicator.SendOnlyEndpoint.ToString()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ await DataStore.CreateBuilder()
.WithThroughput(days: 2)
.AddEndpoint("Endpoint3", sources: [ThroughputSource.Broker])
.ConfigureEndpoint(
endpoint => endpoint.UserIndicator = UserIndicator.SendOnlyOrTransactionSessionEndpoint.ToString())
endpoint => endpoint.UserIndicator = UserIndicator.SendOnlyEndpoint.ToString())
.WithThroughput(days: 2)
.AddEndpoint("Endpoint4", sources: [ThroughputSource.Broker])
.ConfigureEndpoint(endpoint => endpoint.UserIndicator = UserIndicator.PlannedToDecommission.ToString())
Expand Down