Skip to content

Commit

Permalink
Housekeeping: parameterised => parameterized.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Aug 4, 2023
1 parent 721e4f1 commit 7996d57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test/Autofac.Test/ResolutionExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Autofac.Core;
using Autofac.Core.Activators.ProvidedInstance;
using Autofac.Core.Registration;
using Autofac.Test.Scenarios.Parameterisation;
using Autofac.Test.Scenarios.Parameterization;
using Autofac.Test.Scenarios.WithProperty;

namespace Autofac.Test;
Expand Down Expand Up @@ -61,11 +61,11 @@ public void WhenServiceNotRegistered_ResolveOptionalReturnsNull()
public void WhenParametersProvided_ResolveOptionalSuppliesThemToComponent()
{
var cb = new ContainerBuilder();
cb.RegisterType<Parameterised>();
cb.RegisterType<Parameterized>();
var container = cb.Build();
const string param1 = "Hello";
const int param2 = 42;
var result = container.ResolveOptional<Parameterised>(
var result = container.ResolveOptional<Parameterized>(
new NamedParameter("a", param1),
new NamedParameter("b", param2));
Assert.NotNull(result);
Expand All @@ -80,7 +80,7 @@ public void WhenPredicateAndValueParameterSupplied_PassedToComponent()
const int b = 42;
var builder = new ContainerBuilder();

builder.RegisterType<Parameterised>()
builder.RegisterType<Parameterized>()
.WithParameter(
(pi, c) => pi.Name == "a",
(pi, c) => a)
Expand All @@ -89,7 +89,7 @@ public void WhenPredicateAndValueParameterSupplied_PassedToComponent()
(pi, c) => b);

var container = builder.Build();
var result = container.Resolve<Parameterised>();
var result = container.Resolve<Parameterized>();

Assert.Equal(a, result.A);
Assert.Equal(b, result.B);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright (c) Autofac Project. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

namespace Autofac.Test.Scenarios.Parameterisation;
namespace Autofac.Test.Scenarios.Parameterization;

public class Parameterised
public class Parameterized
{
public string A { get; private set; }

public int B { get; private set; }

public Parameterised(string a, int b)
public Parameterized(string a, int b)
{
A = a;
B = b;
Expand Down

0 comments on commit 7996d57

Please sign in to comment.