public void Init() { var builder = new ContainerBuilder(); builder.RegisterModule(new RomanNumberModule()); builder.RegisterModule(new RomanNumberDataModule()); builder.RegisterModule(new RomanNumberAlgorithmModule()); var container = builder.Build(); _specializeConverter = container.Resolve <ArabianToRomanNumberConverter>(); _generalConverter = container.Resolve <IConverter>(); _romanNumberBuilder = container.Resolve <RomanNumber.RomanNumberBuilder>(); _arabianToRomanNumberDecoderFactory = container.Resolve <IFactory <int, IDecoder <int, string> > >(); }