generated from mauroservienti/code-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from mauroservienti/multi-targeting-1.2
[1.2] Add multi-targeting support .NET Core 3.1/.NET Framework 4.8
- Loading branch information
Showing
13 changed files
with
196 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/NServiceBus.AssemblyScanner.Extensions/NServiceBus.AssemblyScanner.Extensions.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
src/NServiceBus.IntegrationTesting.Tests/API/NET48/APIApprovals.Approve_API.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/mauroservienti/NServiceBus.IntegrationTesting.git")] | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("NServiceBus.IntegrationTesting.Tests")] | ||
[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName=".NET Framework 4.8")] | ||
namespace NServiceBus.IntegrationTesting | ||
{ | ||
public class EmptyTestCompletionHandler : NServiceBus.IntegrationTesting.IHandleTestCompletion | ||
{ | ||
public EmptyTestCompletionHandler() { } | ||
public System.Threading.Tasks.Task OnTestCompleted(NServiceBus.AcceptanceTesting.Support.RunSummary summary) { } | ||
} | ||
public static class EndpointConfigurationExtensions | ||
{ | ||
public static void RegisterRequiredPipelineBehaviors(this NServiceBus.EndpointConfiguration builder, string endpointName, NServiceBus.IntegrationTesting.IntegrationScenarioContext integrationScenarioContext) { } | ||
public static void RegisterScenarioContext(this NServiceBus.EndpointConfiguration builder, NServiceBus.AcceptanceTesting.ScenarioContext scenarioContext) { } | ||
} | ||
public abstract class EndpointTemplate : NServiceBus.AcceptanceTesting.Support.IEndpointSetupTemplate | ||
{ | ||
protected EndpointTemplate() { } | ||
public System.Threading.Tasks.Task<NServiceBus.EndpointConfiguration> GetConfiguration(NServiceBus.AcceptanceTesting.Support.RunDescriptor runDescriptor, NServiceBus.AcceptanceTesting.Support.EndpointCustomizationConfiguration endpointCustomizationConfiguration, System.Action<NServiceBus.EndpointConfiguration> configurationBuilderCustomization) { } | ||
protected abstract System.Threading.Tasks.Task<NServiceBus.EndpointConfiguration> OnGetConfiguration(NServiceBus.AcceptanceTesting.Support.RunDescriptor runDescriptor, NServiceBus.AcceptanceTesting.Support.EndpointCustomizationConfiguration endpointCustomizationConfiguration, System.Action<NServiceBus.EndpointConfiguration> configurationBuilderCustomization); | ||
} | ||
public class EndpointTemplate<T> : NServiceBus.IntegrationTesting.EndpointTemplate | ||
where T : NServiceBus.EndpointConfiguration, new () | ||
{ | ||
public EndpointTemplate() { } | ||
protected override System.Threading.Tasks.Task<NServiceBus.EndpointConfiguration> OnGetConfiguration(NServiceBus.AcceptanceTesting.Support.RunDescriptor runDescriptor, NServiceBus.AcceptanceTesting.Support.EndpointCustomizationConfiguration endpointCustomizationConfiguration, System.Action<NServiceBus.EndpointConfiguration> configurationBuilderCustomization) { } | ||
} | ||
public class EndpointTemplate<T, C> : NServiceBus.IntegrationTesting.EndpointTemplate<T> | ||
where T : NServiceBus.EndpointConfiguration, new () | ||
where C : NServiceBus.IntegrationTesting.IHandleTestCompletion, new () | ||
{ | ||
public EndpointTemplate() { } | ||
protected override System.Threading.Tasks.Task<NServiceBus.EndpointConfiguration> OnGetConfiguration(NServiceBus.AcceptanceTesting.Support.RunDescriptor runDescriptor, NServiceBus.AcceptanceTesting.Support.EndpointCustomizationConfiguration endpointConfiguration, System.Action<NServiceBus.EndpointConfiguration> configurationBuilderCustomization) { } | ||
} | ||
public class GenericHostEndpointBehaviorBuilder<TContext> | ||
where TContext : NServiceBus.AcceptanceTesting.ScenarioContext | ||
{ | ||
public GenericHostEndpointBehaviorBuilder() { } | ||
public System.Collections.Generic.IList<NServiceBus.AcceptanceTesting.Support.IWhenDefinition> Whens { get; } | ||
public NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext> When(System.Func<NServiceBus.IMessageSession, System.Threading.Tasks.Task> action) { } | ||
public NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext> When(System.Func<NServiceBus.IMessageSession, TContext, System.Threading.Tasks.Task> action) { } | ||
public NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext> When(System.Func<TContext, System.Threading.Tasks.Task<bool>> condition, System.Func<NServiceBus.IMessageSession, System.Threading.Tasks.Task> action) { } | ||
public NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext> When(System.Func<TContext, System.Threading.Tasks.Task<bool>> condition, System.Func<NServiceBus.IMessageSession, TContext, System.Threading.Tasks.Task> action) { } | ||
public NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext> When(System.Predicate<TContext> condition, System.Func<NServiceBus.IMessageSession, System.Threading.Tasks.Task> action) { } | ||
public NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext> When(System.Predicate<TContext> condition, System.Func<NServiceBus.IMessageSession, TContext, System.Threading.Tasks.Task> action) { } | ||
} | ||
public class HandlerInvocation : NServiceBus.IntegrationTesting.Invocation | ||
{ | ||
public HandlerInvocation() { } | ||
public System.Type HandlerType { get; } | ||
} | ||
public interface IHandleTestCompletion | ||
{ | ||
System.Threading.Tasks.Task OnTestCompleted(NServiceBus.AcceptanceTesting.Support.RunSummary summary); | ||
} | ||
public class IntegrationScenarioContext : NServiceBus.AcceptanceTesting.ScenarioContext | ||
{ | ||
public IntegrationScenarioContext() { } | ||
public System.Collections.Generic.IEnumerable<NServiceBus.IntegrationTesting.HandlerInvocation> InvokedHandlers { get; } | ||
public System.Collections.Generic.IEnumerable<NServiceBus.IntegrationTesting.SagaInvocation> InvokedSagas { get; } | ||
public System.Collections.Generic.IEnumerable<NServiceBus.IntegrationTesting.OutgoingMessageOperation> OutgoingMessageOperations { get; } | ||
public bool HandlerWasInvoked<THandler>() { } | ||
public bool HasFailedMessages() { } | ||
public bool HasHandlingErrors() { } | ||
public bool MessageWasProcessed<TMessage>() { } | ||
public bool MessageWasProcessedByHandler<TMessage, THandler>() { } | ||
public bool MessageWasProcessedBySaga<TMessage, TSaga>() { } | ||
public void RegisterTimeoutRescheduleRule<TTimeout>(System.Func<object, NServiceBus.DelayedDelivery.DoNotDeliverBefore, NServiceBus.DelayedDelivery.DoNotDeliverBefore> rule) { } | ||
public bool SagaWasCompleted<TSaga>() | ||
where TSaga : NServiceBus.Saga { } | ||
public bool SagaWasInvoked<TSaga>() | ||
where TSaga : NServiceBus.Saga { } | ||
} | ||
public abstract class Invocation | ||
{ | ||
protected Invocation() { } | ||
public string EndpointName { get; } | ||
public System.Exception HandlingError { get; } | ||
public object Message { get; } | ||
public System.Type MessageType { get; } | ||
} | ||
public abstract class OutgoingMessageOperation | ||
{ | ||
protected OutgoingMessageOperation() { } | ||
public System.Collections.Generic.Dictionary<string, string> MessageHeaders { get; } | ||
public string MessageId { get; } | ||
public object MessageInstance { get; } | ||
public System.Type MessageType { get; } | ||
public System.Exception OperationError { get; } | ||
public string SenderEndpoint { get; } | ||
} | ||
public class PublishOperation : NServiceBus.IntegrationTesting.OutgoingMessageOperation | ||
{ | ||
public PublishOperation() { } | ||
} | ||
public class ReplyOperation : NServiceBus.IntegrationTesting.OutgoingMessageOperation | ||
{ | ||
public ReplyOperation() { } | ||
} | ||
public class RequestTimeoutOperation : NServiceBus.IntegrationTesting.SendOperation | ||
{ | ||
public RequestTimeoutOperation() { } | ||
public string SagaId { get; } | ||
public string SagaTypeAssemblyQualifiedName { get; } | ||
} | ||
public class SagaInvocation : NServiceBus.IntegrationTesting.Invocation | ||
{ | ||
public SagaInvocation() { } | ||
public bool IsCompleted { get; } | ||
public bool IsNew { get; } | ||
public bool NotFound { get; } | ||
public NServiceBus.IContainSagaData SagaData { get; } | ||
public System.Type SagaType { get; } | ||
} | ||
public static class ScenarioWithEndpointBehaviorExtensions | ||
{ | ||
public static NServiceBus.AcceptanceTesting.Support.IScenarioWithEndpointBehavior<TContext> WithGenericHostEndpoint<TContext>(this NServiceBus.AcceptanceTesting.Support.IScenarioWithEndpointBehavior<TContext> scenarioWithEndpoint, string endpointName, System.Func<System.Action<NServiceBus.EndpointConfiguration>, Microsoft.Extensions.Hosting.IHost> hostBuilder, System.Action<NServiceBus.IntegrationTesting.GenericHostEndpointBehaviorBuilder<TContext>> behavior = null) | ||
where TContext : NServiceBus.AcceptanceTesting.ScenarioContext { } | ||
} | ||
public class SendOperation : NServiceBus.IntegrationTesting.OutgoingMessageOperation | ||
{ | ||
public SendOperation() { } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...API/APIApprovals.Approve_API.approved.txt → ...APP/APIApprovals.Approve_API.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters