public void Initialize() { _competitionEntryService = Substitute.For <ICompetitionEntryService>(); _emailService = Substitute.For <IEmailService>(); _messageFormatter = Substitute.For <IMessageFormatter>(); _controller = new WatermelonController(_competitionEntryService, _emailService, _messageFormatter); }
public WatermellonController(ICompetitionEntryService competitionEntryService) { _competitionEntryService = competitionEntryService; }
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; }
public WatermelonController(ICompetitionEntryService competitionEntryService, IEmailService emailService, IMessageFormatter messageFormatter) { _competitionEntryService = competitionEntryService; _emailService = emailService; _messageFormatter = messageFormatter; }