Simon G.
45125eb926
- refactoring and adapt to new language features
1 year ago
Simon G.
fc8faf6b23
- adapt unit tests to new nunit asserts
1 year ago
Simon G.
9a5abca32b
- fix multiton resolve with int as scope
1 year ago
Simon G
3ee8910378
- replace moq with nSubstitute
2 years ago
Simon G
a163e19c1e
- multitons need first argument in ctor to be scope
3 years ago
Simon G
a6f446666e
- don't allow to use ctors where not all given arguments are used
...
- fix wrong parameter array size
3 years ago
Simon G
430f58e1c4
- use file scoped namespaces
3 years ago
Simon G
3bea00c409
- allow registration of same types if registered equally
4 years ago
Simon G
3acd6adfea
- completely rework registration:
...
- creation of registrations is done in registrationCollector now
- installers don't get container anymore, get registrationCollector
- allow validation
- introduce dispose strategies (#55 )
4 years ago
Simon G
16604f89c2
#51 : fix unit test warning
4 years ago
Simon G
6687bdb8b4
#51 : add tests for withParameter and singleton registrations
4 years ago
Simon G
8e2c45a5cf
- extract resolve to IResolver interface
4 years ago
Simon G
d83d94e393
- refactoring
4 years ago
Simon G
b18c0dc858
#50 : append factory registration
...
- add withFactory fluent interface
- remove unneeded DefaultRegistration
4 years ago
Simon G
9e957dac5a
#49 : allow resolve of implementation that is registered with an interface
4 years ago
Simon G
cfa1eb816c
#46 : start code cleanup
5 years ago
Simon G
19a20ffd92
- don't allow registration of lifestyle.multiton without iMultitonRegistration
...
- add iLifestyleProvider and move Lifestyle from IRegistratrionBase<> to it
- add non generic IMultitonRegistration as base class
6 years ago
Simon G
f5fefa400a
close #38 : remove UnitTestCallbackRegistration
6 years ago
Simon G
cd4b80de5b
close #35 : add test to check that NoMatchingConstructorException is not thrown wronly
...
- remove TESTME
6 years ago
Simon Gockner
024d820f91
#33 : add multipleRegistration handling, rename RegisterMultiton
6 years ago
Simon Gockner
cc52cd3361
#29 : add ISingleTypeRegistration unit test
6 years ago
Simon Gockner
f1e4f5e2f9
#29 : mark IUnitTestResolveCallback as deprecated
6 years ago
Simon Gockner
5f3c9e2832
#29 : add ISingleTypeRegistration:
...
- add `WithFactoryMethod()` to set a `FactoryMethod` that gets called when an instance of the registered type is created
- allow registration of only an interface, if you resolve only an interface without a factoryMethod an exception is thrown
6 years ago
Simon Gockner
a42188f687
#28 : add CircularDependencyException:
...
- throw circularDependencyException when user tries to resolve a circular dependency
- make non-generic Resolve() method private
- add resolveStack to private Resolve() and ResolveInternal<>() methods and all methods in between their calls
6 years ago
Simon Gockner
659a45dd96
#27 : throw exception when no public constructor is found
6 years ago
Simon Gockner
15fb9c7d5b
#26 : add unit test
6 years ago
Simon Gockner
f852fedae3
#25 : remove non-generic register methods
6 years ago
Simon Gockner
cb4ea88597
- add boxing for simple datatypes in factory creation
...
- add test for factories with simple datatypes as parameters
6 years ago
Simon Gockner
64d3a5823c
#24 : add UnitTestResolveCallback and needed registration
6 years ago
Simon Gockner
14311a69a3
#22 : Simplify registration:
...
- call register methods directly from container
- make RegistrationFactory internal
6 years ago
Simon Gockner
8cdeb19770
- add more registrationFactory tests
6 years ago
Simon Gockner
de702e72a9
#21 : allow registration of a type without an interface
6 years ago
Simon Gockner
d91392e382
#20 : add method to check if type is installed
6 years ago
Simon Gockner
b6bfc95ace
- fix unit tests
7 years ago
Simon Gockner
e1533140b2
- refactoring of xml comments
7 years ago
Simon Gockner
19d4ebcff4
#14 : fix handling of default parameters
7 years ago
Simon Gockner
42b9eb53c9
#3 : improve multiton usage:
...
- allow declaration of interfaces as scope, but still getting instance through implementation
- add new method `ClearMultitonInstances<T>()` that allows to clear the created multiton instances for a given type
- handle `ClearMultitonInstance<T>()` method in abstract factories and call the corresponding method in the IIocContainer
- update tests
7 years ago
Simon Gockner
6e66631636
- add posibility to register types that use open generics
7 years ago
Simon Gockner
d45ca22ec8
#10 : add assemblyInstaller and fromAssembly helper
7 years ago
Simon Gockner
49e836f872
- add jetbrains.annotations
...
- fix more resharper issues
7 years ago
Simon Gockner
b779e0ccba
- fix name of test
7 years ago
Simon Gockner
c999234911
- add multiton lifestyle ( #3 )
...
- update tests
- bump c# language version to 7.3
7 years ago
Simon Gockner
77e158f564
#6 : start refactoring `Injector` to Ioc
7 years ago