コード例 #1
0
        public DivisionsControllerTest()
        {
            var diServiceBuilder = new DIServiceBuilder();

            _controller = diServiceBuilder.GetService <DivisionsController>();
            _creators   = new Creators();
        }
コード例 #2
0
        public DivisionService_Test()
        {
            var diServiceBuilder = new DIServiceBuilder();

            _divisionService = diServiceBuilder.GetService <DivisionService>();
            _creators        = new Creators();
        }
コード例 #3
0
ファイル: Creators.cs プロジェクト: navff/od_stat_back
        public Creators()
        {
            DIServiceBuilder builder = new DIServiceBuilder();
            var context = builder.GetService <OdContext>();

            DivisionCreator = new DivisionCreator(context);
            AddressCreator  = new AddressCreator(context);
            UserCreator     = new UserCreator(context);
        }