Exemplo n.º 1
0
 public GroupService(
     IUnitOfWorkFactory unitOfWorkFactory,
     IAuthorizationUtil authorizationUtil,
     INotificationSessionFactory notificationSessionFactory,
     IMapper mapper,
     IDurationUtil durationUtil,
     IGroupUtil groupUtil,
     IGroupHistoryUtil groupHistoryUtil,
     IGroupConfigUtil groupConfigUtil
     )
 {
     _unitOfWorkFactory          = unitOfWorkFactory;
     _authorizationUtil          = authorizationUtil;
     _mapper                     = mapper;
     _notificationSessionFactory = notificationSessionFactory;
     _durationUtil               = durationUtil;
     _groupUtil                  = groupUtil;
     _groupHistoryUtil           = groupHistoryUtil;
     _groupConfigUtil            = groupConfigUtil;
 }
Exemplo n.º 2
0
        public void SetUp()
        {
            _unitOfWorkFactory          = new FakeUnitOfWorkFactory();
            _authorizationUtil          = Substitute.For <IAuthorizationUtil>();
            _notificationSessionFactory = new FakeNotificationSessionFactory();
            _mapper           = Substitute.For <IMapper>();
            _groupUtil        = Substitute.For <IGroupUtil>();
            _durationUtil     = Substitute.For <IDurationUtil>();
            _groupHistoryUtil = Substitute.For <IGroupHistoryUtil>();
            _groupConfigUtil  = Substitute.For <IGroupConfigUtil>();

            _service = new GroupService(
                _unitOfWorkFactory,
                _authorizationUtil,
                _notificationSessionFactory,
                _mapper,
                _durationUtil,
                _groupUtil,
                _groupHistoryUtil,
                _groupConfigUtil
                );
        }