public void SetUp()
        {
            _unitOfWorkFactory    = new FakeUnitOfWorkFactory();
            _characterFactory     = Substitute.For <ICharacterFactory>();
            _itemService          = Substitute.For <IItemService>();
            _authorizationUtil    = Substitute.For <IAuthorizationUtil>();
            _characterHistoryUtil = Substitute.For <ICharacterHistoryUtil>();
            _mapper = Substitute.For <IMapper>();
            _characterModifierUtil      = Substitute.For <ICharacterModifierUtil>();
            _notificationSessionFactory = new FakeNotificationSessionFactory();
            _characterUtil = Substitute.For <ICharacterUtil>();
            _itemUtil      = Substitute.For <IItemUtil>();

            _service = new CharacterService(
                _unitOfWorkFactory,
                _characterFactory,
                _itemService,
                _authorizationUtil,
                _characterHistoryUtil,
                _mapper,
                _characterModifierUtil,
                _notificationSessionFactory,
                _characterUtil,
                _itemUtil
                );
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            _unitOfWorkFactory          = new FakeUnitOfWorkFactory();
            _itemFactory                = Substitute.For <IItemFactory>();
            _notificationSessionFactory = new FakeNotificationSessionFactory();
            _authorizationUtil          = Substitute.For <IAuthorizationUtil>();
            _itemUtil             = Substitute.For <IItemUtil>();
            _characterHistoryUtil = Substitute.For <ICharacterHistoryUtil>();
            _jsonUtil             = Substitute.For <IJsonUtil>();
            _itemTemplateUtil     = Substitute.For <IItemTemplateUtil>();
            _actionsUtil          = Substitute.For <IActionsUtil>();
            _rngUtil      = Substitute.For <IRngUtil>();
            _itemDataUtil = Substitute.For <IItemDataUtil>();

            _service = new ItemService(
                _unitOfWorkFactory,
                _itemFactory,
                _notificationSessionFactory,
                _authorizationUtil,
                _itemUtil,
                _characterHistoryUtil,
                _jsonUtil,
                _rngUtil,
                _itemTemplateUtil,
                _actionsUtil,
                _itemDataUtil
                );
        }
Ejemplo n.º 3
0
 public CharacterUtil(
     IAuthorizationUtil authorizationUtil,
     ICharacterHistoryUtil characterHistoryUtil,
     IJsonUtil jsonUtil,
     IOriginUtil originUtil
     )
 {
     _authorizationUtil    = authorizationUtil;
     _characterHistoryUtil = characterHistoryUtil;
     _jsonUtil             = jsonUtil;
     _originUtil           = originUtil;
 }
Ejemplo n.º 4
0
        public void SetUp()
        {
            _characterHistoryUtil = Substitute.For <ICharacterHistoryUtil>();
            _itemDataUtil         = Substitute.For <IItemDataUtil>();
            _jsonUtil             = Substitute.For <IJsonUtil>();
            _itemFactory          = Substitute.For <IItemFactory>();

            _util = new ItemUtil(
                _characterHistoryUtil,
                _itemDataUtil,
                _jsonUtil,
                new FakeUnitOfWorkFactory(),
                new FakeNotificationSessionFactory(),
                _itemFactory
                );
        }
Ejemplo n.º 5
0
 public CharacterService(
     IUnitOfWorkFactory unitOfWorkFactory,
     ICharacterFactory characterFactory,
     IItemService itemService,
     IAuthorizationUtil authorizationUtil,
     ICharacterHistoryUtil characterHistoryUtil,
     IMapper mapper,
     ICharacterModifierUtil characterModifierUtil,
     INotificationSessionFactory notificationSessionFactory,
     ICharacterUtil characterUtil,
     IItemUtil itemUtil
     )
 {
     _unitOfWorkFactory    = unitOfWorkFactory;
     _characterFactory     = characterFactory;
     _itemService          = itemService;
     _authorizationUtil    = authorizationUtil;
     _characterHistoryUtil = characterHistoryUtil;
     _mapper = mapper;
     _characterModifierUtil      = characterModifierUtil;
     _notificationSessionFactory = notificationSessionFactory;
     _characterUtil = characterUtil;
     _itemUtil      = itemUtil;
 }
 public AddCustomModifierExecutor(ICharacterHistoryUtil characterHistoryUtil)
 {
     _characterHistoryUtil = characterHistoryUtil;
 }
Ejemplo n.º 7
0
 public AddEvExecutor(ICharacterHistoryUtil characterHistoryUtil)
 {
     _characterHistoryUtil = characterHistoryUtil;
 }
        public void SetUp()
        {
            _characterHistoryUtil = Substitute.For <ICharacterHistoryUtil>();

            _util = new CharacterModifierUtil(_characterHistoryUtil);
        }
 public CharacterModifierUtil(ICharacterHistoryUtil characterHistoryUtil)
 {
     _characterHistoryUtil = characterHistoryUtil;
 }