public void SetUp()
        {
            _archetypeService      = Substitute.For <IArchetypeService>();
            _archetypeCardsService = Substitute.For <IArchetypeCardsService>();

            _sut = new ArchetypeCardProcessor(_archetypeService, _archetypeCardsService);
        }
        public void SetUp()
        {
            _archetypeService           = Substitute.For <IArchetypeService>();
            _archetypeImageQueueService = Substitute.For <IArchetypeImageQueueService>();

            _sut = new ArchetypeProcessor(_archetypeService, _archetypeImageQueueService);
        }
Esempio n. 3
0
        public void Setup()
        {
            _archetypeWebPage = Substitute.For <IArchetypeWebPage>();
            _archetypeService = Substitute.For <IArchetypeService>();
            _config           = Substitute.For <IConfig>();

            _sut = new ArchetypeItemProcessor(_archetypeWebPage, _archetypeService, _config);
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArchetypeController"/> class.
 /// </summary>
 /// <param name="archetypeService">The archetype service.</param>
 /// <param name="queryParamsValidator">The query parameters validator.</param>
 /// <param name="numberOfResultsHelper">The number of results helper.</param>
 /// <param name="archetypeToDtoConverter">The archetype to dto converter.</param>
 /// <exception cref="ArgumentNullException">
 /// archetypeService
 /// or
 /// queryParamsValidator
 /// or
 /// numberOfResultsHelper
 /// or
 /// archetypeToDtoConverter
 /// </exception>
 public ArchetypeController(
     IArchetypeService archetypeService,
     IArchetypeBrowserQueryParamsValidator queryParamsValidator,
     INumberOfResultsHelper numberOfResultsHelper,
     IArchetypeToDtoConverter archetypeToDtoConverter)
 {
     _archetypeService        = archetypeService ?? throw new ArgumentNullException(nameof(archetypeService));
     _queryParamsValidator    = queryParamsValidator ?? throw new ArgumentNullException(nameof(queryParamsValidator));
     _numberOfResultsHelper   = numberOfResultsHelper ?? throw new ArgumentNullException(nameof(numberOfResultsHelper));
     _archetypeToDtoConverter = archetypeToDtoConverter ?? throw new ArgumentNullException(nameof(archetypeToDtoConverter));
 }
Esempio n. 5
0
 public CardsByArchetypeItemProcessor
 (
     IArchetypeWebPage archetypeWebPage,
     IArchetypeService archetypeService,
     IArchetypeCardsService archetypeCardsService,
     IConfig config
 )
 {
     _archetypeWebPage      = archetypeWebPage;
     _archetypeService      = archetypeService;
     _archetypeCardsService = archetypeCardsService;
     _config = config;
 }
Esempio n. 6
0
        public void SetUp()
        {
            _archetypeService = Substitute.For <IArchetypeService>();


            var config = new MapperConfiguration
                         (
                cfg => { cfg.AddProfile(new CardProfile()); }
                         );

            var mapper = config.CreateMapper();


            _sut = new ArchetypeByIdQueryHandler(_archetypeService, mapper);
        }
Esempio n. 7
0
 public ArchetypeSearchQueryHandler(IArchetypeService archetypeService)
 {
     _archetypeService = archetypeService;
 }
 public ArchetypeProcessor(IArchetypeService archetypeService, IArchetypeImageQueueService archetypeImageQueueService)
 {
     _archetypeService           = archetypeService;
     _archetypeImageQueueService = archetypeImageQueueService;
 }
Esempio n. 9
0
 public ArchetypeCardProcessor(IArchetypeService archetypeService, IArchetypeCardsService archetypeCardsService)
 {
     _archetypeService      = archetypeService;
     _archetypeCardsService = archetypeCardsService;
 }
Esempio n. 10
0
 public ArchetypeController(IArchetypeService archetypeService)
 {
     _archetypeService = archetypeService;
 }
        public void SetUp()
        {
            _archetypeService = Substitute.For <IArchetypeService>();

            _sut = new MostRecentArchetypesQueryHandler(_archetypeService);
        }
 public MostRecentArchetypesQueryHandler(IArchetypeService archetypeService)
 {
     _archetypeService = archetypeService;
 }
Esempio n. 13
0
 public ArchetypeController(IArchetypeService archetypeService)
 {
     _archetypeService = archetypeService;
 }
 public ArchetypeByIdQueryHandler(IArchetypeService archetypeService, IMapper mapper)
 {
     _archetypeService = archetypeService;
     _mapper           = mapper;
 }