diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 613f533..cf9b85e 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -3,7 +3,7 @@ module poodinis.container; import std.string; struct Registration { - TypeInfo registratedType = null; + TypeInfo registeredType = null; TypeInfo_Class instantiatableType = null; public Object getInstance() { @@ -12,8 +12,8 @@ struct Registration { } class RegistrationException : Exception { - this(string message, TypeInfo registratedType, TypeInfo_Class instantiatableType) { - super(format("Exception while registering type %s to %s: %s", registratedType.toString(), instantiatableType.name, message)); + this(string message, TypeInfo registeredType, TypeInfo_Class instantiatableType) { + super(format("Exception while registering type %s to %s: %s", registeredType.toString(), instantiatableType.name, message)); } } @@ -37,7 +37,7 @@ class Container { } Registration newRegistration = { registeredType, instantiatableType }; - registrations[newRegistration.registratedType] = newRegistration; + registrations[newRegistration.registeredType] = newRegistration; return newRegistration; } diff --git a/test/poodinis/containertest.d b/test/poodinis/containertest.d index 00d64b0..19242aa 100644 --- a/test/poodinis/containertest.d +++ b/test/poodinis/containertest.d @@ -15,7 +15,7 @@ version(unittest) { unittest { // Test register concrete type auto registration = Container.register!(TestClass)(); - assert(registration.registratedType == typeid(TestClass), "Type of registered type not the same"); + assert(registration.registeredType == typeid(TestClass), "Type of registered type not the same"); } unittest {