예제 #1
0
 public DisneyStarWars2018ServiceTest()
 {
     repo        = new Mock <IDisneyStarWars2018InstantLotteryRepository>();
     settingRepo = new Mock <IDisneyStarWars2018InstantLotteryPrizeSettingRepository>();
     time        = new Mock <ITimeProvider>();
     time.Setup(x => x.Now).Returns(new DateTime(2018, 5, 2, 15, 0, 0));
     service = new DisneyStarWars2018Service(repo.Object, settingRepo.Object, time.Object);
 }
예제 #2
0
        public DisneyStarWars2018Controller(IDisneyStarWars2018Service service, ICommonProvider common)
        {
            this.service = service;
            this.common  = common;

            mapperConfig = new MapperConfiguration(cfg => {
                cfg.CreateMap <DisneyStarWars2018Model, DisneyStarWars2018InstantLottery>();
            });
        }
예제 #3
0
 public AdminDisneyStarWars2018Controller(IDisneyStarWars2018Service service, ICommonProvider common)
 {
     this.service = service;
     this.common  = common;
 }