コード例 #1
0
 public Pororo2018ServiceTest()
 {
     repo        = new Mock <IPororo2018InstantLotteryRepository>();
     settingRepo = new Mock <IPororo2018InstantLotteryPrizeSettingRepository>();
     time        = new Mock <ITimeProvider>();
     time.Setup(x => x.Now).Returns(new DateTime(2018, 1, 4, 15, 0, 0));
     service = new Pororo2018Service(repo.Object, settingRepo.Object, time.Object);
 }
コード例 #2
0
        public Pororo2018ApiController(IPororo2018Service service, ICommonProvider common)
        {
            this.service = service;
            this.common  = common;

            mapperConfig = new MapperConfiguration(cfg => {
                cfg.CreateMap <Pororo2018PrizeSettingModel, Pororo2018InstantLotteryPrizeSetting>();
            });
        }
コード例 #3
0
 public AdminPororo2018Controller(IPororo2018Service service, ICommonProvider common)
 {
     this.service = service;
     this.common  = common;
 }