public void Initialize()
 {
     _competitionEntryService = Substitute.For <ICompetitionEntryService>();
     _emailService            = Substitute.For <IEmailService>();
     _messageFormatter        = Substitute.For <IMessageFormatter>();
     _controller = new WatermelonController(_competitionEntryService, _emailService, _messageFormatter);
 }
Example #2
0
 public WatermellonController(ICompetitionEntryService competitionEntryService)
 {
     _competitionEntryService = competitionEntryService;
 }
Example #3
0
 public void Initialise()
 {
     _repo    = Substitute.For <ICompetitionEntryRepository>();
     _unit    = Substitute.For <IUnitOfWork>();
     _service = new CompetitionEntryService(_repo, _unit);
 }
 public void Initialise()
 {
     _repo    = new Mock <ICompetitionEntryRepository>();
     _unit    = new Mock <IUnitOfWork>();
     _service = new CompetitionEntryService(_repo.Object, _unit.Object);
 }
 public EntriesController(ICompetitionEntryService entryService, IMapper mapperService)
 {
     _entryService  = entryService;
     _mapperService = mapperService;
 }
Example #6
0
 public WatermelonController(ICompetitionEntryService competitionEntryService, IEmailService emailService, IMessageFormatter messageFormatter)
 {
     _competitionEntryService = competitionEntryService;
     _emailService            = emailService;
     _messageFormatter        = messageFormatter;
 }