Skip to content

Commit f00d7b0

Browse files
BREAKING CHANGE: Rename from .AddCommander to .AddMando
1 parent 2b9ac07 commit f00d7b0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Mando/Mando.Exmaple/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
services
1111
.AddSingleton<IService, Service>()
1212
.AddSingleton<IApplication, Application>()
13-
.AddCommander(Assembly.GetExecutingAssembly()))
13+
.AddMando(Assembly.GetExecutingAssembly()))
1414
.Build();
1515

1616
using var scope = host.Services.CreateScope();

Mando/Mando.Tests/MultipleCommandsPerHandlerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public MultipleCommandsPerHandlerTests()
1414
{
1515
_dispatcher = new ServiceCollection()
1616
.AddSingleton<IStd>(_std)
17-
.AddCommander(Assembly.GetExecutingAssembly())
17+
.AddMando(Assembly.GetExecutingAssembly())
1818
.BuildServiceProvider()
1919
.GetRequiredService<IDispatcher>();
2020
}

Mando/Mando.Tests/MultipleHandlersPerCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public MultipleHandlersPerCommandTests()
1414
{
1515
_dispatcher = new ServiceCollection()
1616
.AddSingleton<IStd>(_std)
17-
.AddCommander(Assembly.GetExecutingAssembly())
17+
.AddMando(Assembly.GetExecutingAssembly())
1818
.BuildServiceProvider()
1919
.GetRequiredService<IDispatcher>();
2020
}

Mando/Mando.Tests/SingleHandlerPerCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public SingleHandlerPerCommandTests()
1414
{
1515
_dispatcher = new ServiceCollection()
1616
.AddSingleton<IStd>(_std)
17-
.AddCommander(Assembly.GetExecutingAssembly())
17+
.AddMando(Assembly.GetExecutingAssembly())
1818
.BuildServiceProvider()
1919
.GetRequiredService<IDispatcher>();
2020
}

Mando/Mando/DependencyInjectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Mando;
66

77
public static class DependencyInjectionExtensions
88
{
9-
public static IServiceCollection AddCommander(this IServiceCollection services, Assembly assembly)
9+
public static IServiceCollection AddMando(this IServiceCollection services, Assembly assembly)
1010
{
1111
var handlerTypes = assembly.GetTypes()
1212
.Where(t => t is { IsAbstract: false, IsInterface: false })

0 commit comments

Comments
 (0)