public void Setup()
        {
            _repositoryWrapper          = new Mock <IRepositoryWrapper>();
            _mapper                     = new Mock <IMapper>();
            _participantStatusManager   = new Mock <IParticipantStatusManager>();
            _participantManager         = new Mock <IParticipantManager>();
            _eventAdministrationManager = new Mock <IEventAdmininistrationManager>();

            var userStoreMock = new Mock <IUserStore <DBUser> >();

            _userManager = new Mock <UserManager <DBUser> >(
                userStoreMock.Object, null, null, null, null, null, null, null, null);

            _service = new EventUserService(_repositoryWrapper.Object, _userManager.Object,
                                            _participantStatusManager.Object, _mapper.Object, _participantManager.Object,
                                            _eventAdministrationManager.Object);
        }
Example #2
0
 public EventsController(EventService es, CategoryService cs, EventUserService eus)
 {
     _eventService    = es;
     _categoryService = cs;
     _euService       = eus;
 }