public void Setup()
 {
     _recordRepository = MockRepository.GenerateMock<IRecordRepository>();
     _sortFactory = MockRepository.GenerateMock<ISortStrategyFactory>();
     _sut = new RecordsController(_sortFactory,_recordRepository);
 }
 public void Setup()
 {
     _sut = new SortStrategyFactory();
 }
Exemple #3
0
 public SortHandler(IStringToCollectionParser <decimal> stringParser, ISortStrategyFactory sortStrategyFactory)
 {
     this.sortStrategyFactory             = sortStrategyFactory ?? throw new ArgumentNullException(nameof(sortStrategyFactory));
     this.stringToDecimalCollectionParser = stringParser ?? throw new ArgumentNullException(nameof(stringParser));
 }