chore: update insert_final_newline setting

This commit is contained in:
Louis Seubert 2026-05-16 12:36:35 +02:00
commit 2572bd3695
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
151 changed files with 151 additions and 151 deletions

View file

@ -5,7 +5,7 @@ indent_style = tab
indent_size = 4 indent_size = 4
tab_width = 4 tab_width = 4
end_of_line = lf end_of_line = lf
insert_final_newline = false insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
max_line_length = 120 max_line_length = 120

View file

@ -24,4 +24,4 @@ internal sealed class ErrorTests
var instance = await Assert.That(error).IsTypeOf<ExceptionError>(); var instance = await Assert.That(error).IsTypeOf<ExceptionError>();
await Assert.That(instance?.Exception).IsTypeOf<CustomTestException>(); await Assert.That(instance?.Exception).IsTypeOf<CustomTestException>();
} }
} }

View file

@ -47,4 +47,4 @@ internal sealed class ExtensionsEnumerableTests
await Assert.That(result.IsSuccess).IsTrue(); await Assert.That(result.IsSuccess).IsTrue();
await Assert.That(result.Value).IsEmpty(); await Assert.That(result.Value).IsEmpty();
} }
} }

View file

@ -97,4 +97,4 @@ internal sealed class PreludeTests
var instance = await Assert.That(result.Error).IsTypeOf<ExceptionError>(); var instance = await Assert.That(result.Error).IsTypeOf<ExceptionError>();
await Assert.That(instance?.Exception).IsTypeOf<CustomTestException>(); await Assert.That(instance?.Exception).IsTypeOf<CustomTestException>();
} }
} }

View file

@ -61,4 +61,4 @@ internal sealed class ResultConversionTests
await Assert.That(() => (int)result).Throws<UnwrapException>(); await Assert.That(() => (int)result).Throws<UnwrapException>();
} }
} }

View file

@ -172,4 +172,4 @@ internal sealed class ResultEqualityTests
await Assert.That(result.GetHashCode()).IsZero(); await Assert.That(result.GetHashCode()).IsZero();
} }
} }

View file

@ -229,4 +229,4 @@ internal sealed class ResultMatchingTests
return ValueTask.CompletedTask; return ValueTask.CompletedTask;
} }
} }
} }

View file

@ -56,4 +56,4 @@ internal sealed class ResultTests
await Assert.That(result.ToString()).IsEqualTo("Failure { error }"); await Assert.That(result.ToString()).IsEqualTo("Failure { error }");
} }
} }

View file

@ -641,4 +641,4 @@ internal sealed class ResultTransformTests
await Assert.That(result.Error).IsTypeOf<StringError>(); await Assert.That(result.Error).IsTypeOf<StringError>();
await Assert.That(result.Error?.Message).IsEqualTo("error"); await Assert.That(result.Error?.Message).IsEqualTo("error");
} }
} }

View file

@ -96,4 +96,4 @@ internal sealed class ResultUnboxTests
await Assert.That(error).IsEqualTo(default(Error)); await Assert.That(error).IsEqualTo(default(Error));
await Assert.That(value).IsEqualTo(2); await Assert.That(value).IsEqualTo(2);
} }
} }

View file

@ -8,4 +8,4 @@ internal sealed class CustomTestError : Error
internal const string DefaultMessage = "This is a custom error for test"; internal const string DefaultMessage = "This is a custom error for test";
public override string Message => DefaultMessage; public override string Message => DefaultMessage;
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Result.Tests;
internal sealed class CustomTestException : Exception internal sealed class CustomTestException : Exception
{ {
} }

View file

@ -98,4 +98,4 @@ public static class Prelude
return new Result<T>(new ExceptionError(exception)); return new Result<T>(new ExceptionError(exception));
} }
} }
} }

View file

@ -48,4 +48,4 @@ public readonly partial struct Result<T>
{ {
return result.Unwrap(); return result.Unwrap();
} }
} }

View file

@ -160,4 +160,4 @@ public readonly partial struct Result<T> : IEqualityOperators<Result<T>, Result<
{ {
return !Equals(a, b, EqualityComparer<T>.Default); return !Equals(a, b, EqualityComparer<T>.Default);
} }
} }

View file

@ -101,4 +101,4 @@ public readonly partial struct Result<T>
{ {
return IsSuccess ? success(Value) : failure(Error); return IsSuccess ? success(Value) : failure(Error);
} }
} }

View file

@ -363,4 +363,4 @@ public readonly partial struct Result<T>
} }
} }
} }
} }

View file

@ -63,4 +63,4 @@ public readonly partial struct Result<T>
return !IsSuccess; return !IsSuccess;
} }
} }

View file

@ -75,4 +75,4 @@ public readonly partial struct Result<T>
public object? Value => result.IsSuccess ? result.Value : result.Error; public object? Value => result.IsSuccess ? result.Value : result.Error;
} }
} }

View file

@ -24,4 +24,4 @@ public sealed class AggregateError : Error
/// <inheritdoc/> /// <inheritdoc/>
public override string Message => string.Join(Environment.NewLine, Errors.Select(error => error.Message)); public override string Message => string.Join(Environment.NewLine, Errors.Select(error => error.Message));
} }

View file

@ -53,4 +53,4 @@ public abstract class Error
{ {
return new ExceptionError(exception); return new ExceptionError(exception);
} }
} }

View file

@ -26,4 +26,4 @@ public sealed class ExceptionError : Error
/// The exception in the error. /// The exception in the error.
/// </summary> /// </summary>
public override string Message => Exception.Message; public override string Message => Exception.Message;
} }

View file

@ -21,4 +21,4 @@ public sealed class StringError : Error
/// <inheritdoc/> /// <inheritdoc/>
public override string Message => _message; public override string Message => _message;
} }

View file

@ -23,4 +23,4 @@ public sealed class UnwrapException : Exception
public UnwrapException(string error) : base(error) public UnwrapException(string error) : base(error)
{ {
} }
} }

View file

@ -87,4 +87,4 @@ public static partial class Extensions
return list; return list;
} }
} }

View file

@ -97,4 +97,4 @@ public static partial class Extensions
} }
#endregion #endregion
} }

View file

@ -117,4 +117,4 @@ internal sealed class RequestDispatcherBuilderExtensionsTests
await Assert.That(() => builder.Add([typeof(TestHandler)], ServiceLifetime.Transient)).Throws<ArgumentNullException>(); await Assert.That(() => builder.Add([typeof(TestHandler)], ServiceLifetime.Transient)).Throws<ArgumentNullException>();
} }
} }
} }

View file

@ -108,4 +108,4 @@ internal sealed class ScalarBehaviourTests
} }
} }
// Moved to _fixtures // Moved to _fixtures

View file

@ -248,4 +248,4 @@ internal sealed class ScalarDispatcherTests
} }
} }
// Moved to _fixtures // Moved to _fixtures

View file

@ -107,4 +107,4 @@ internal sealed class StreamBehaviourTests
} }
} }
// Moved to _fixtures // Moved to _fixtures

View file

@ -240,4 +240,4 @@ public class StreamDispatcherTests
await Assert.That(() => options.Inspect([])).Throws<InvalidOperationException>(); await Assert.That(() => options.Inspect([])).Throws<InvalidOperationException>();
} }
} }

View file

@ -16,4 +16,4 @@ public class AmbiguousScalarHandler : IScalarRequestHandler<AmbiguousScalarReque
{ {
return Task.FromResult("Interface-Handled"); return Task.FromResult("Interface-Handled");
} }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class AmbiguousScalarRequest : IScalarRequest<string> public class AmbiguousScalarRequest : IScalarRequest<string>
{ {
} }

View file

@ -16,4 +16,4 @@ public class AmbiguousStreamHandler : IStreamRequestHandler<AmbiguousStreamReque
{ {
yield return "Interface-Handled"; yield return "Interface-Handled";
} }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class AmbiguousStreamRequest : IStreamRequest<string> public class AmbiguousStreamRequest : IStreamRequest<string>
{ {
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class AnotherNamedScalarRequest : INamedScalarRequest public class AnotherNamedScalarRequest : INamedScalarRequest
{ {
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class AnotherNamedStreamRequest : INamedStreamRequest public class AnotherNamedStreamRequest : INamedStreamRequest
{ {
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
} }

View file

@ -9,4 +9,4 @@ internal sealed class AnotherTestHandler : IScalarRequestHandler<AnotherTestRequ
{ {
return Task.FromResult("ok"); return Task.FromResult("ok");
} }
} }

View file

@ -3,4 +3,4 @@
namespace Geekeey.Request.Tests; namespace Geekeey.Request.Tests;
internal sealed class AnotherTestRequest : IScalarRequest<string> { } internal sealed class AnotherTestRequest : IScalarRequest<string> { }

View file

@ -7,4 +7,4 @@ public abstract class BaseScalarHandler<TRequest> : IScalarRequestHandler<TReque
where TRequest : IScalarRequest<string> where TRequest : IScalarRequest<string>
{ {
public abstract Task<string> HandleAsync(TRequest request, CancellationToken cancellationToken); public abstract Task<string> HandleAsync(TRequest request, CancellationToken cancellationToken);
} }

View file

@ -7,4 +7,4 @@ public abstract class BaseStreamHandler<TRequest> : IStreamRequestHandler<TReque
where TRequest : IStreamRequest<string> where TRequest : IStreamRequest<string>
{ {
public abstract IAsyncEnumerable<string> HandleAsync(TRequest request, CancellationToken cancellationToken); public abstract IAsyncEnumerable<string> HandleAsync(TRequest request, CancellationToken cancellationToken);
} }

View file

@ -10,4 +10,4 @@ public class ConstrainedScalarHandler<TRequest> : IScalarRequestHandler<TRequest
{ {
return Task.FromResult($"{request.Value}-Constrained"); return Task.FromResult($"{request.Value}-Constrained");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class ConstrainedScalarRequest : IScalarRequest<string> public class ConstrainedScalarRequest : IScalarRequest<string>
{ {
public int Value { get; set; } public int Value { get; set; }
} }

View file

@ -11,4 +11,4 @@ public class ConstrainedStreamHandler<TRequest> : IStreamRequestHandler<TRequest
yield return $"{request.Value}-Constrained-0"; yield return $"{request.Value}-Constrained-0";
yield return $"{request.Value}-Constrained-1"; yield return $"{request.Value}-Constrained-1";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class ConstrainedStreamRequest : IStreamRequest<string> public class ConstrainedStreamRequest : IStreamRequest<string>
{ {
public int Value { get; set; } public int Value { get; set; }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class DeepDerivedScalarRequest : InheritedScalarRequest public class DeepDerivedScalarRequest : InheritedScalarRequest
{ {
public int DeepValue { get; set; } public int DeepValue { get; set; }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class DeepDerivedStreamRequest : InheritedStreamRequest public class DeepDerivedStreamRequest : InheritedStreamRequest
{ {
public int DeepValue { get; set; } public int DeepValue { get; set; }
} }

View file

@ -9,4 +9,4 @@ public class DerivedScalarHandler : BaseScalarHandler<DerivedScalarRequest>
{ {
return Task.FromResult($"Derived: {request.Value}"); return Task.FromResult($"Derived: {request.Value}");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class DerivedScalarRequest : IScalarRequest<string> public class DerivedScalarRequest : IScalarRequest<string>
{ {
public int Value { get; set; } public int Value { get; set; }
} }

View file

@ -10,4 +10,4 @@ public class DerivedStreamHandler : BaseStreamHandler<DerivedStreamRequest>
yield return $"Derived: {request.Value}-0"; yield return $"Derived: {request.Value}-0";
yield return $"Derived: {request.Value}-1"; yield return $"Derived: {request.Value}-1";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class DerivedStreamRequest : IStreamRequest<string> public class DerivedStreamRequest : IStreamRequest<string>
{ {
public int Value { get; set; } public int Value { get; set; }
} }

View file

@ -9,4 +9,4 @@ public class ExplicitGenericScalarHandler<T> : IScalarRequestHandler<ExplicitGen
{ {
return Task.FromResult($"{request.Value}-ExplicitHandled"); return Task.FromResult($"{request.Value}-ExplicitHandled");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class ExplicitGenericScalarRequest : IScalarRequest<string> public class ExplicitGenericScalarRequest : IScalarRequest<string>
{ {
public string Value { get; set; } = string.Empty; public string Value { get; set; } = string.Empty;
} }

View file

@ -9,4 +9,4 @@ public class ExplicitGenericStreamHandler<T> : IStreamRequestHandler<ExplicitGen
{ {
yield return $"{request.Value}-ExplicitHandled"; yield return $"{request.Value}-ExplicitHandled";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class ExplicitGenericStreamRequest : IStreamRequest<string> public class ExplicitGenericStreamRequest : IStreamRequest<string>
{ {
public string Value { get; set; } = string.Empty; public string Value { get; set; } = string.Empty;
} }

View file

@ -9,4 +9,4 @@ public class FailingScalarHandler : IScalarRequestHandler<FailingScalarRequest,
{ {
throw new InvalidOperationException("Handler failed"); throw new InvalidOperationException("Handler failed");
} }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class FailingScalarRequest : IScalarRequest<string> public class FailingScalarRequest : IScalarRequest<string>
{ {
} }

View file

@ -10,4 +10,4 @@ public class FailingStreamHandler : IStreamRequestHandler<FailingStreamRequest,
yield return "Wait for it..."; yield return "Wait for it...";
throw new InvalidOperationException("Handler failed"); throw new InvalidOperationException("Handler failed");
} }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class FailingStreamRequest : IStreamRequest<string> public class FailingStreamRequest : IStreamRequest<string>
{ {
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public interface INamedScalarRequest : IScalarRequest<string> public interface INamedScalarRequest : IScalarRequest<string>
{ {
string Name { get; } string Name { get; }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public interface INamedStreamRequest : IStreamRequest<string> public interface INamedStreamRequest : IStreamRequest<string>
{ {
string Name { get; } string Name { get; }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class InheritedScalarRequest : OpenScalarRequest public class InheritedScalarRequest : OpenScalarRequest
{ {
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class InheritedStreamRequest : OpenStreamRequest public class InheritedStreamRequest : OpenStreamRequest
{ {
} }

View file

@ -10,4 +10,4 @@ public class InterfaceConstrainedScalarHandler<TRequest> : IScalarRequestHandler
{ {
return Task.FromResult($"{request.Name}-ConstrainedByInterface"); return Task.FromResult($"{request.Name}-ConstrainedByInterface");
} }
} }

View file

@ -11,4 +11,4 @@ public class InterfaceConstrainedStreamHandler<TRequest> : IStreamRequestHandler
yield return $"{request.Name}-ConstrainedByInterface-0"; yield return $"{request.Name}-ConstrainedByInterface-0";
yield return $"{request.Name}-ConstrainedByInterface-1"; yield return $"{request.Name}-ConstrainedByInterface-1";
} }
} }

View file

@ -9,4 +9,4 @@ public class InterfaceInheritedScalarHandler : IScalarRequestHandler<InterfaceIn
{ {
return Task.FromResult($"{request.Name}-InterfaceHandled"); return Task.FromResult($"{request.Name}-InterfaceHandled");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class InterfaceInheritedScalarRequest : INamedScalarRequest public class InterfaceInheritedScalarRequest : INamedScalarRequest
{ {
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
} }

View file

@ -10,4 +10,4 @@ public class InterfaceInheritedStreamHandler : IStreamRequestHandler<InterfaceIn
yield return $"{request.Name}-InterfaceHandled-0"; yield return $"{request.Name}-InterfaceHandled-0";
yield return $"{request.Name}-InterfaceHandled-1"; yield return $"{request.Name}-InterfaceHandled-1";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class InterfaceInheritedStreamRequest : INamedStreamRequest public class InterfaceInheritedStreamRequest : INamedStreamRequest
{ {
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
} }

View file

@ -14,4 +14,4 @@ public class MultiInterfaceScalarHandler : IScalarRequestHandler<MultiInterfaceS
{ {
return Task.FromResult("One"); return Task.FromResult("One");
} }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class MultiInterfaceScalarRequest : IScalarRequest<int>, IScalarRequest<string> public class MultiInterfaceScalarRequest : IScalarRequest<int>, IScalarRequest<string>
{ {
} }

View file

@ -16,4 +16,4 @@ public class MultiInterfaceStreamHandler : IStreamRequestHandler<MultiInterfaceS
yield return "One"; yield return "One";
yield return "Two"; yield return "Two";
} }
} }

View file

@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
public class MultiInterfaceStreamRequest : IStreamRequest<int>, IStreamRequest<string> public class MultiInterfaceStreamRequest : IStreamRequest<int>, IStreamRequest<string>
{ {
} }

View file

@ -10,4 +10,4 @@ where TRequest : OpenScalarRequest
{ {
return Task.FromResult($"{request.Data}-Handled"); return Task.FromResult($"{request.Data}-Handled");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class OpenScalarRequest : IScalarRequest<string> public class OpenScalarRequest : IScalarRequest<string>
{ {
public string Data { get; set; } = string.Empty; public string Data { get; set; } = string.Empty;
} }

View file

@ -11,4 +11,4 @@ public class OpenStreamHandler<TRequest> : IStreamRequestHandler<TRequest, strin
yield return $"{request.Data}-Stream-0"; yield return $"{request.Data}-Stream-0";
yield return $"{request.Data}-Stream-1"; yield return $"{request.Data}-Stream-1";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class OpenStreamRequest : IStreamRequest<string> public class OpenStreamRequest : IStreamRequest<string>
{ {
public string Data { get; set; } = string.Empty; public string Data { get; set; } = string.Empty;
} }

View file

@ -10,4 +10,4 @@ public class ScalarChainedBehaviour1(ScalarTestTracker tracker) : IScalarRequest
tracker.Log.Add("Behaviour1"); tracker.Log.Add("Behaviour1");
return await next(request, cancellationToken); return await next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class ScalarChainedBehaviour2(ScalarTestTracker tracker) : IScalarRequest
tracker.Log.Add("Behaviour2"); tracker.Log.Add("Behaviour2");
return await next(request, cancellationToken); return await next(request, cancellationToken);
} }
} }

View file

@ -11,4 +11,4 @@ where TRequest : IScalarRequest<TResponse>
tracker.Executed = true; tracker.Executed = true;
return await next(request, cancellationToken); return await next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class ScalarOrderingClosedBehavior(ScalarTestTracker tracker) : IScalarRe
tracker.Log.Add("OrderingClosed"); tracker.Log.Add("OrderingClosed");
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -11,4 +11,4 @@ where TRequest : IScalarRequest<TOutput>
tracker.Log.Add("OrderingOpen"); tracker.Log.Add("OrderingOpen");
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class ScalarTestBehavior(ScalarTestTracker tracker) : IScalarRequestBehav
tracker.Executed = true; tracker.Executed = true;
return await next(request, cancellationToken); return await next(request, cancellationToken);
} }
} }

View file

@ -9,4 +9,4 @@ public class ScalarTestHandler : IScalarRequestHandler<ScalarTestRequest, string
{ {
return Task.FromResult($"{request.Value}-Handled"); return Task.FromResult($"{request.Value}-Handled");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class ScalarTestRequest : IScalarRequest<string> public class ScalarTestRequest : IScalarRequest<string>
{ {
public string Value { get; set; } = string.Empty; public string Value { get; set; } = string.Empty;
} }

View file

@ -7,4 +7,4 @@ public class ScalarTestTracker
{ {
public List<string> Log { get; } = []; public List<string> Log { get; } = [];
public bool Executed { get; set; } public bool Executed { get; set; }
} }

View file

@ -9,4 +9,4 @@ public class ScalarTestWrapperHandler<T> : IScalarRequestHandler<ScalarTestWrapp
{ {
return Task.FromResult($"Handled-{request.Item}"); return Task.FromResult($"Handled-{request.Item}");
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class ScalarTestWrapperRequest<T> : IScalarRequest<string> public class ScalarTestWrapperRequest<T> : IScalarRequest<string>
{ {
public T Item { get; set; } = default!; public T Item { get; set; } = default!;
} }

View file

@ -10,4 +10,4 @@ public class ScalarWrapperBehavior<T>(ScalarTestTracker tracker) : IScalarReques
tracker.Executed = true; tracker.Executed = true;
return await next(request, cancellationToken); return await next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class StreamChainedBehaviour1(StreamTestTracker tracker) : IStreamRequest
tracker.Log.Add("Behaviour1"); tracker.Log.Add("Behaviour1");
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class StreamChainedBehaviour2(StreamTestTracker tracker) : IStreamRequest
tracker.Log.Add("Behaviour2"); tracker.Log.Add("Behaviour2");
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -11,4 +11,4 @@ where TRequest : IStreamRequest<TResponse>
tracker.Executed = true; tracker.Executed = true;
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class StreamOrderingClosedBehavior(StreamTestTracker tracker) : IStreamRe
tracker.Log.Add("Closed"); tracker.Log.Add("Closed");
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -11,4 +11,4 @@ where TRequest : IStreamRequest<TOutput>
tracker.Log.Add("Open"); tracker.Log.Add("Open");
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class StreamTestBehavior(StreamTestTracker tracker) : IStreamRequestBehav
tracker.Executed = true; tracker.Executed = true;
return next(request, cancellationToken); return next(request, cancellationToken);
} }
} }

View file

@ -10,4 +10,4 @@ public class StreamTestHandler : IStreamRequestHandler<StreamTestRequest, string
yield return $"{request.Value}-Handled-0"; yield return $"{request.Value}-Handled-0";
yield return $"{request.Value}-Handled-1"; yield return $"{request.Value}-Handled-1";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class StreamTestRequest : IStreamRequest<string> public class StreamTestRequest : IStreamRequest<string>
{ {
public string Value { get; set; } = string.Empty; public string Value { get; set; } = string.Empty;
} }

View file

@ -7,4 +7,4 @@ public class StreamTestTracker
{ {
public List<string> Log { get; } = []; public List<string> Log { get; } = [];
public bool Executed { get; set; } public bool Executed { get; set; }
} }

View file

@ -10,4 +10,4 @@ public class StreamTestWrapperHandler<T> : IStreamRequestHandler<StreamTestWrapp
yield return $"Handled-{request.Item}-0"; yield return $"Handled-{request.Item}-0";
yield return $"Handled-{request.Item}-1"; yield return $"Handled-{request.Item}-1";
} }
} }

View file

@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
public class StreamTestWrapperRequest<T> : IStreamRequest<string> public class StreamTestWrapperRequest<T> : IStreamRequest<string>
{ {
public T? Item { get; set; } public T? Item { get; set; }
} }

Some files were not shown because too many files have changed in this diff Show more