资 源 简 介
Fluent Spring is a DSL (Domain Specific Language) to configure Spring.NET container.
It enable fluent programmatic configuration of Spring.NET.
This is how you would use the configurator:
```
using FluentSpring;
using Spring.Context;
...
configurator = new FluentConfigurator();
configurator.Register().AsSelf();
configurator.Register().AsSelf()
.BindCtorArg().To();
IApplicationContext appContext = configurator.ToSpring();
ClassWithConstructorParam myObject = appContext.GetObject();
Assert.IsNotNull(myObject);
Assert.IsNotNull(myObject.Arg1);
```
For detailed code, check out the unit tests in ResolveConstructorDependencyTest.cs
Take a look at