public EventServiceTest()
 {
     _eventRepo       = new TestRepo <Event>();
     _memberRepo      = new TestRepo <Member>();
     _accountAccessor = new TestAccountAccessor(null);
     _eventService    = new EventService(_eventRepo, _memberRepo, null, _accountAccessor);
 }
Exemple #2
0
        public MemberServiceTest()
        {
            _eventRepo  = new TestRepo <Event>();
            _memberRepo = new TestRepo <Member>();
            var account = new Account("tyler");

            _accountAccessor = new TestAccountAccessor(account);
            var authService = new AuthorizationService(_memberRepo, _accountAccessor);

            _eventService  = new EventService(_eventRepo, _memberRepo, authService, _accountAccessor);
            _memberService = new MemberService(_eventService, _memberRepo, authService, _accountAccessor);
        }