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