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); }
public DisneyStarWars2018Controller(IDisneyStarWars2018Service service, ICommonProvider common) { this.service = service; this.common = common; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <DisneyStarWars2018Model, DisneyStarWars2018InstantLottery>(); }); }
public AdminDisneyStarWars2018Controller(IDisneyStarWars2018Service service, ICommonProvider common) { this.service = service; this.common = common; }