public void SetUp()
        {
            _reader = MockRepository.GenerateStub<IReader<Artist>>();
            _writer = MockRepository.GenerateStub<IWriter<Artist>>();

            _operationOutput = new ExceptionOperationOutput();
        }
        public void SetUp()
        {
            _fileWrapper = MockRepository.GenerateStub<IFileWrapper>();
            _serializer = MockRepository.GenerateStub<ISerializer<Artist>>();

            _reader = new ArtistReader(_fileWrapper, _serializer);
            _writer = MockRepository.GenerateStub<IWriter<Artist>>();

            _operationOutput = new ExceptionOperationOutput();
        }
Пример #3
0
 public ArtistHandler(IWriter<Artist> writer, IReader<Artist> reader, IOperationOutput operationOutput)
 {
     _writer = writer;
     _reader = reader;
     _operationOutput = operationOutput;
 }