コード例 #1
0
        public void Init()
        {
            var builder = new ContainerBuilder();

            builder.RegisterModule <DomainLogicTestModule>();

            var container = builder.Build();

            Allocator        = container.Resolve <SalesPersonAllocationProvider>();
            SalesPersonStore = container.Resolve <SalesPersonStore>();
        }
コード例 #2
0
 public AllocateController(
     SalesPersonAllocationProvider salesPersonAllocator)
 {
     _salesPersonAllocator = salesPersonAllocator;
 }