-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
84 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<RootNamespace>Shiny.Mediator</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<!-- <ItemGroup>--> | ||
<!-- <ProjectReference Include="..\Shiny.Mediator.SourceGenerators\Shiny.Mediator.SourceGenerators.csproj"/>--> | ||
<!-- </ItemGroup>--> | ||
|
||
</Project> |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Project> | ||
<ItemGroup Condition=" '$(ImplicitUsings)' == 'true' OR '$(ImplicitUsings)' == 'enable' "> | ||
<Using Include="Shiny.Mediator" /> | ||
</ItemGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// using FluentAssertions; | ||
// using Shiny.Mediator; | ||
// | ||
// namespace Shiny.Mediator.Tests; | ||
// | ||
// public class SourceGeneratorTests | ||
// { | ||
// [Fact] | ||
// public void DidRegister() | ||
// { | ||
// var services = new ServiceCollection(); | ||
// services.AddShinyMediator(); | ||
// // TODO: source gen call | ||
// var sp = services.BuildServiceProvider(); | ||
// | ||
// sp.GetService<IEventHandler<SourceGenEvent>>().Should().NotBeNull("Event Handler not found"); | ||
// sp.GetService<IRequestHandler<SourceGenRequest>>().Should().NotBeNull("Request Handler not found"); | ||
// sp.GetService<IRequestHandler<SourceGenResponseRequest, SourceGenResponse>>().Should().NotBeNull("Request/Response Handler not found"); | ||
// } | ||
// } | ||
// | ||
// public record SourceGenRequest : IRequest; | ||
// public record SourceGenResponseRequest : IRequest<SourceGenResponse>; | ||
// public record SourceGenResponse; | ||
// public record SourceGenEvent : IEvent; | ||
// | ||
// [RegisterHandler] | ||
// public class SourceGenRequestHandler : IRequestHandler<SourceGenRequest> | ||
// { | ||
// public Task Handle(SourceGenRequest request, CancellationToken cancellationToken) => Task.CompletedTask; | ||
// } | ||
// [RegisterHandler] | ||
// public class SourceGenResponseRequestHandler : IRequestHandler<SourceGenResponseRequest, SourceGenResponse> | ||
// { | ||
// public Task<SourceGenResponse> Handle(SourceGenResponseRequest request, CancellationToken cancellationToken) | ||
// => Task.FromResult(new SourceGenResponse()); | ||
// } | ||
// [RegisterHandler] | ||
// public class SourceGenEventHandler : IEventHandler<SourceGenEvent> | ||
// { | ||
// public Task Handle(SourceGenEvent @event, CancellationToken cancellationToken) => Task.CompletedTask; | ||
// } |