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
12 changes: 7 additions & 5 deletions FlowMediator/FlowMediator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
<PropertyGroup>
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.0</Version>
<Version>1.2.0</Version>
<PackageId>FlowMediator</PackageId>
<Authors>berk2k</Authors>
<Description>
A lightweight mediator library with pipeline behaviors for .NET 8/9.
FlowMediator is a lightweight mediator library with pipeline behaviors and domain events for .NET 8/9.
Ideal for hobby projects, or learning CQRS patterns without the complexity of bigger frameworks.
Provides request/response messaging and pipeline behaviors like logging and validation with minimal setup.
Provides request/response messaging, pipeline behaviors (logging, validation), and EF Core domain event support.
</Description>
<PackageTags>mediator cqrs pipeline .net lightweight hobby</PackageTags>
<PackageTags>mediator cqrs pipeline domain-events .net lightweight hobby</PackageTags>
<RepositoryUrl>https://github.com/berk2k/FlowMediator</RepositoryUrl>
<PackageProjectUrl>https://github.com/berk2k/FlowMediator</PackageProjectUrl>
<PackageReleaseNotes>Initial 1.0.0 release: core mediator, pipeline behaviors, DI integration.</PackageReleaseNotes>
<PackageReleaseNotes>
v1.2.0 - Added Domain Event support with EF Core integration. Improved README and documentation.
</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
3 changes: 1 addition & 2 deletions tests/FlowMediator.Tests/DomainEventTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class DomainEventTests
public async Task Should_Handle_DomainEvent_When_EntityCreated()
{
// Arrange
var services = new ServiceCollection();
IServiceCollection services = new ServiceCollection();
services.AddFlowMediator(typeof(DomainEventTests).Assembly);
var provider = services.BuildServiceProvider();
var mediator = provider.GetRequiredService<IMediator>();
Expand All @@ -27,5 +27,4 @@ public async Task Should_Handle_DomainEvent_When_EntityCreated()
Assert.Single(entity.DomainEvents);
}
}

}
1 change: 0 additions & 1 deletion tests/FlowMediator.Tests/FlowMediator.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="FluentAssertions" Version="8.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
Expand Down
8 changes: 1 addition & 7 deletions tests/FlowMediator.Tests/MediatorTest.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
using FlowMediator.Contracts;
using FlowMediator.Extensions;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;

namespace FlowMediator.Tests
{

public class MediatorTests
{
[Fact]
public async Task SendAsync_Should_Invoke_Handler()
{
// Arrange
var services = new ServiceCollection();
services.AddFlowMediator(typeof(MediatorTests).Assembly);
var provider = services.BuildServiceProvider();
var mediator = provider.GetRequiredService<IMediator>();

// Act
var result = await mediator.SendAsync(new Ping());

// Assert
result.Should().Be("Pong");
Assert.Equal("Pong", result);
}

[Fact]
Expand All @@ -44,5 +39,4 @@ public class PingHandler : IRequestHandler<Ping, string>
public Task<string> Handle(Ping request, CancellationToken cancellationToken)
=> Task.FromResult("Pong");
}

}
Loading