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); }
public Pororo2018ApiController(IPororo2018Service service, ICommonProvider common) { this.service = service; this.common = common; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <Pororo2018PrizeSettingModel, Pororo2018InstantLotteryPrizeSetting>(); }); }
public AdminPororo2018Controller(IPororo2018Service service, ICommonProvider common) { this.service = service; this.common = common; }