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); }
public void Setup() { _archetypeWebPage = Substitute.For <IArchetypeWebPage>(); _archetypeService = Substitute.For <IArchetypeService>(); _config = Substitute.For <IConfig>(); _sut = new ArchetypeItemProcessor(_archetypeWebPage, _archetypeService, _config); }
/// <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)); }
public CardsByArchetypeItemProcessor ( IArchetypeWebPage archetypeWebPage, IArchetypeService archetypeService, IArchetypeCardsService archetypeCardsService, IConfig config ) { _archetypeWebPage = archetypeWebPage; _archetypeService = archetypeService; _archetypeCardsService = archetypeCardsService; _config = config; }
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); }
public ArchetypeSearchQueryHandler(IArchetypeService archetypeService) { _archetypeService = archetypeService; }
public ArchetypeProcessor(IArchetypeService archetypeService, IArchetypeImageQueueService archetypeImageQueueService) { _archetypeService = archetypeService; _archetypeImageQueueService = archetypeImageQueueService; }
public ArchetypeCardProcessor(IArchetypeService archetypeService, IArchetypeCardsService archetypeCardsService) { _archetypeService = archetypeService; _archetypeCardsService = archetypeCardsService; }
public ArchetypeController(IArchetypeService archetypeService) { _archetypeService = archetypeService; }
public void SetUp() { _archetypeService = Substitute.For <IArchetypeService>(); _sut = new MostRecentArchetypesQueryHandler(_archetypeService); }
public MostRecentArchetypesQueryHandler(IArchetypeService archetypeService) { _archetypeService = archetypeService; }
public ArchetypeByIdQueryHandler(IArchetypeService archetypeService, IMapper mapper) { _archetypeService = archetypeService; _mapper = mapper; }