コード例 #1
0
 public void SetUp()
 {
     context            = new MockDreamLeagueContext();
     gameWeekSerializer = new Mock <IGameWeekSerializer <GameWeekSummary> >();
     gameWeekService    = new Mock <IGameWeekService>();
     controller         = new DataController(context.MockContext.Object, gameWeekSerializer.Object, gameWeekService.Object);
 }
コード例 #2
0
 public void SetUp()
 {
     context    = new MockDreamLeagueContext();
     cupService = new Mock <ICupService>();
     cupService.Setup(x => x.GetData(It.IsAny <int>())).Returns <int>(id => new CupViewModel(CupData.Data().FirstOrDefault(c => c.CupId == id)));
     controller = new CupController(context.MockContext.Object, cupService.Object);
 }
コード例 #3
0
 public void SetUp()
 {
     context            = new MockDreamLeagueContext();
     gameWeekSerializer = new Mock <IGameWeekSerializer <GameWeekSummary> >();
     statisticsService  = new Mock <IStatisticsService>();
     emailService       = new Mock <IEmailService>();
     controller         = new ManagerController(context.MockContext.Object, gameWeekSerializer.Object, statisticsService.Object, emailService.Object);
 }
コード例 #4
0
 public void SetUp()
 {
     context = new MockDreamLeagueContext();
     gameWeekSummaryService = new Mock <IGameWeekSummaryService>();
     cupWeekSummaryService  = new Mock <IGameWeekSummaryService>();
     gameWeekService        = new Mock <IGameWeekService>();
     auditService           = new Mock <IAuditService>();
     controller             = new ConcedeController(context.MockContext.Object, gameWeekSummaryService.Object, cupWeekSummaryService.Object, gameWeekService.Object, auditService.Object);
 }
コード例 #5
0
 public void SetUp()
 {
     context    = new MockDreamLeagueContext();
     controller = new HistoryController(context.MockContext.Object);
 }
コード例 #6
0
 public void SetUp()
 {
     context        = new MockDreamLeagueContext();
     meetingService = new Mock <IMeetingService>();
     controller     = new MeetingController(context.MockContext.Object, meetingService.Object);
 }