chore: update insert_final_newline setting
This commit is contained in:
parent
d97cbbaa1c
commit
2572bd3695
151 changed files with 151 additions and 151 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,4 +61,4 @@ internal sealed class ResultConversionTests
|
||||||
|
|
||||||
await Assert.That(() => (int)result).Throws<UnwrapException>();
|
await Assert.That(() => (int)result).Throws<UnwrapException>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -172,4 +172,4 @@ internal sealed class ResultEqualityTests
|
||||||
|
|
||||||
await Assert.That(result.GetHashCode()).IsZero();
|
await Assert.That(result.GetHashCode()).IsZero();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -229,4 +229,4 @@ internal sealed class ResultMatchingTests
|
||||||
return ValueTask.CompletedTask;
|
return ValueTask.CompletedTask;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,4 +56,4 @@ internal sealed class ResultTests
|
||||||
|
|
||||||
await Assert.That(result.ToString()).IsEqualTo("Failure { error }");
|
await Assert.That(result.ToString()).IsEqualTo("Failure { error }");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Result.Tests;
|
||||||
|
|
||||||
internal sealed class CustomTestException : Exception
|
internal sealed class CustomTestException : Exception
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,4 +98,4 @@ public static class Prelude
|
||||||
return new Result<T>(new ExceptionError(exception));
|
return new Result<T>(new ExceptionError(exception));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,4 +48,4 @@ public readonly partial struct Result<T>
|
||||||
{
|
{
|
||||||
return result.Unwrap();
|
return result.Unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,4 +101,4 @@ public readonly partial struct Result<T>
|
||||||
{
|
{
|
||||||
return IsSuccess ? success(Value) : failure(Error);
|
return IsSuccess ? success(Value) : failure(Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -363,4 +363,4 @@ public readonly partial struct Result<T>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,4 +63,4 @@ public readonly partial struct Result<T>
|
||||||
|
|
||||||
return !IsSuccess;
|
return !IsSuccess;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,4 +53,4 @@ public abstract class Error
|
||||||
{
|
{
|
||||||
return new ExceptionError(exception);
|
return new ExceptionError(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,4 +21,4 @@ public sealed class StringError : Error
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override string Message => _message;
|
public override string Message => _message;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,4 @@ public sealed class UnwrapException : Exception
|
||||||
public UnwrapException(string error) : base(error)
|
public UnwrapException(string error) : base(error)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,4 +87,4 @@ public static partial class Extensions
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -97,4 +97,4 @@ public static partial class Extensions
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -108,4 +108,4 @@ internal sealed class ScalarBehaviourTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moved to _fixtures
|
// Moved to _fixtures
|
||||||
|
|
|
||||||
|
|
@ -248,4 +248,4 @@ internal sealed class ScalarDispatcherTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moved to _fixtures
|
// Moved to _fixtures
|
||||||
|
|
|
||||||
|
|
@ -107,4 +107,4 @@ internal sealed class StreamBehaviourTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moved to _fixtures
|
// Moved to _fixtures
|
||||||
|
|
|
||||||
|
|
@ -240,4 +240,4 @@ public class StreamDispatcherTests
|
||||||
|
|
||||||
await Assert.That(() => options.Inspect([])).Throws<InvalidOperationException>();
|
await Assert.That(() => options.Inspect([])).Throws<InvalidOperationException>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ public class AmbiguousScalarHandler : IScalarRequestHandler<AmbiguousScalarReque
|
||||||
{
|
{
|
||||||
return Task.FromResult("Interface-Handled");
|
return Task.FromResult("Interface-Handled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class AmbiguousScalarRequest : IScalarRequest<string>
|
public class AmbiguousScalarRequest : IScalarRequest<string>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ public class AmbiguousStreamHandler : IStreamRequestHandler<AmbiguousStreamReque
|
||||||
{
|
{
|
||||||
yield return "Interface-Handled";
|
yield return "Interface-Handled";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class AmbiguousStreamRequest : IStreamRequest<string>
|
public class AmbiguousStreamRequest : IStreamRequest<string>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ internal sealed class AnotherTestHandler : IScalarRequestHandler<AnotherTestRequ
|
||||||
{
|
{
|
||||||
return Task.FromResult("ok");
|
return Task.FromResult("ok");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@
|
||||||
|
|
||||||
namespace Geekeey.Request.Tests;
|
namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
internal sealed class AnotherTestRequest : IScalarRequest<string> { }
|
internal sealed class AnotherTestRequest : IScalarRequest<string> { }
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ public class ConstrainedScalarHandler<TRequest> : IScalarRequestHandler<TRequest
|
||||||
{
|
{
|
||||||
return Task.FromResult($"{request.Value}-Constrained");
|
return Task.FromResult($"{request.Value}-Constrained");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class DerivedScalarHandler : BaseScalarHandler<DerivedScalarRequest>
|
||||||
{
|
{
|
||||||
return Task.FromResult($"Derived: {request.Value}");
|
return Task.FromResult($"Derived: {request.Value}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class ExplicitGenericScalarHandler<T> : IScalarRequestHandler<ExplicitGen
|
||||||
{
|
{
|
||||||
return Task.FromResult($"{request.Value}-ExplicitHandled");
|
return Task.FromResult($"{request.Value}-ExplicitHandled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class ExplicitGenericStreamHandler<T> : IStreamRequestHandler<ExplicitGen
|
||||||
{
|
{
|
||||||
yield return $"{request.Value}-ExplicitHandled";
|
yield return $"{request.Value}-ExplicitHandled";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class FailingScalarHandler : IScalarRequestHandler<FailingScalarRequest,
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Handler failed");
|
throw new InvalidOperationException("Handler failed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class FailingScalarRequest : IScalarRequest<string>
|
public class FailingScalarRequest : IScalarRequest<string>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class FailingStreamRequest : IStreamRequest<string>
|
public class FailingStreamRequest : IStreamRequest<string>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
|
||||||
public interface INamedScalarRequest : IScalarRequest<string>
|
public interface INamedScalarRequest : IScalarRequest<string>
|
||||||
{
|
{
|
||||||
string Name { get; }
|
string Name { get; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ namespace Geekeey.Request.Tests;
|
||||||
public interface INamedStreamRequest : IStreamRequest<string>
|
public interface INamedStreamRequest : IStreamRequest<string>
|
||||||
{
|
{
|
||||||
string Name { get; }
|
string Name { get; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class InheritedScalarRequest : OpenScalarRequest
|
public class InheritedScalarRequest : OpenScalarRequest
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class InheritedStreamRequest : OpenStreamRequest
|
public class InheritedStreamRequest : OpenStreamRequest
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ public class InterfaceConstrainedScalarHandler<TRequest> : IScalarRequestHandler
|
||||||
{
|
{
|
||||||
return Task.FromResult($"{request.Name}-ConstrainedByInterface");
|
return Task.FromResult($"{request.Name}-ConstrainedByInterface");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class InterfaceInheritedScalarHandler : IScalarRequestHandler<InterfaceIn
|
||||||
{
|
{
|
||||||
return Task.FromResult($"{request.Name}-InterfaceHandled");
|
return Task.FromResult($"{request.Name}-InterfaceHandled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,4 @@ public class MultiInterfaceScalarHandler : IScalarRequestHandler<MultiInterfaceS
|
||||||
{
|
{
|
||||||
return Task.FromResult("One");
|
return Task.FromResult("One");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class MultiInterfaceScalarRequest : IScalarRequest<int>, IScalarRequest<string>
|
public class MultiInterfaceScalarRequest : IScalarRequest<int>, IScalarRequest<string>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ public class MultiInterfaceStreamHandler : IStreamRequestHandler<MultiInterfaceS
|
||||||
yield return "One";
|
yield return "One";
|
||||||
yield return "Two";
|
yield return "Two";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ namespace Geekeey.Request.Tests;
|
||||||
|
|
||||||
public class MultiInterfaceStreamRequest : IStreamRequest<int>, IStreamRequest<string>
|
public class MultiInterfaceStreamRequest : IStreamRequest<int>, IStreamRequest<string>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ where TRequest : OpenScalarRequest
|
||||||
{
|
{
|
||||||
return Task.FromResult($"{request.Data}-Handled");
|
return Task.FromResult($"{request.Data}-Handled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ where TRequest : IScalarRequest<TResponse>
|
||||||
tracker.Executed = true;
|
tracker.Executed = true;
|
||||||
return await next(request, cancellationToken);
|
return await next(request, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ where TRequest : IScalarRequest<TOutput>
|
||||||
tracker.Log.Add("OrderingOpen");
|
tracker.Log.Add("OrderingOpen");
|
||||||
return next(request, cancellationToken);
|
return next(request, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class ScalarTestHandler : IScalarRequestHandler<ScalarTestRequest, string
|
||||||
{
|
{
|
||||||
return Task.FromResult($"{request.Value}-Handled");
|
return Task.FromResult($"{request.Value}-Handled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ public class ScalarTestWrapperHandler<T> : IScalarRequestHandler<ScalarTestWrapp
|
||||||
{
|
{
|
||||||
return Task.FromResult($"Handled-{request.Item}");
|
return Task.FromResult($"Handled-{request.Item}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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!;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ where TRequest : IStreamRequest<TResponse>
|
||||||
tracker.Executed = true;
|
tracker.Executed = true;
|
||||||
return next(request, cancellationToken);
|
return next(request, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ where TRequest : IStreamRequest<TOutput>
|
||||||
tracker.Log.Add("Open");
|
tracker.Log.Add("Open");
|
||||||
return next(request, cancellationToken);
|
return next(request, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ public class StreamTestBehavior(StreamTestTracker tracker) : IStreamRequestBehav
|
||||||
tracker.Executed = true;
|
tracker.Executed = true;
|
||||||
return next(request, cancellationToken);
|
return next(request, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue