Skip to content

Commit

Permalink
fix: Registered IFormularProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Mar 28, 2024
1 parent c1dc5b1 commit 05f19e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public static IServiceCollection AddWindowsFormsLifetime(
return services
// Add the WindowsFormsLifetime
.AddSingleton<IHostLifetime, WindowsFormsLifetime>()
// Add the FormularProvider
.AddSingleton<IFormularProvider, FormularProvider>()
// Add the SyncronizationContext provider for WindowsForms
.AddSingleton<WindowsFormsSynchronizationContextProvider>()
.AddSingleton<IWindowsFormsSynchronizationContextProvider>(sp =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public void AddWindowsFormsLifetime_ConfigurationNull_Expected(
public static TheoryData<int, Action<WindowsFormsOptions>?> AddWindowsFormsData =>
new TheoryData<int, Action<WindowsFormsOptions>?>
{
{ 4, null },
{ 5, null },
{
10,
11,
options =>
{
options.EnableConsoleShutdown = true;
Expand Down

0 comments on commit 05f19e4

Please sign in to comment.