Beispiel #1
0
        public void Initialize()
        {
            var container = UnityConfig.GetContainer();

            _logger             = container.Resolve <ILogger>();
            _sumRepository      = container.Resolve <ISumRepository>();
            _subtractRepository = container.Resolve <ISubtractRepository>();
        }
 public SumOperation(ILogger logger, ISumRepository repository)
 {
     _logger        = logger;
     _sumRepository = repository;
 }
 public OperationFactory(ILogger logger, ISumRepository sumRepository, ISubtractRepository subtractRepository)
 {
     _logger             = logger;
     _sumRepository      = sumRepository;
     _subtractRepository = subtractRepository;
 }