Beispiel #1
0
        private IMockProviderRequestHandler GetSubject()
        {
            _mockRequestMapper      = Substitute.For <IProviderServiceRequestMapper>();
            _mockResponseMapper     = Substitute.For <INancyResponseMapper>();
            _mockProviderRepository = Substitute.For <IMockProviderRepository>();

            return(new MockProviderRequestHandler(_mockRequestMapper, _mockResponseMapper, _mockProviderRepository));
        }
 public MockProviderRequestHandler(
     IProviderServiceRequestMapper requestMapper,
     INancyResponseMapper responseMapper,
     IMockProviderRepository mockProviderRepository)
 {
     _requestMapper          = requestMapper;
     _responseMapper         = responseMapper;
     _mockProviderRepository = mockProviderRepository;
 }
 public MockProviderRequestHandler(
     IProviderServiceRequestMapper requestMapper,
     INancyResponseMapper responseMapper,
     IMockProviderRepository mockProviderRepository)
 {
     _requestMapper = requestMapper;
     _responseMapper = responseMapper;
     _mockProviderRepository = mockProviderRepository;
 }
 public MockProviderAdminRequestHandler(
     IMockProviderRepository mockProviderRepository,
     IReporter reporter,
     IProviderServiceRequestComparer requestComparer)
 {
     _mockProviderRepository = mockProviderRepository;
     _reporter = reporter;
     _requestComparer = requestComparer;
 }
Beispiel #5
0
 public MockProviderAdminRequestHandler(
     IMockProviderRepository mockProviderRepository,
     IReporter reporter,
     IProviderServiceRequestComparer requestComparer)
 {
     _mockProviderRepository = mockProviderRepository;
     _reporter        = reporter;
     _requestComparer = requestComparer;
 }
Beispiel #6
0
        private IMockProviderAdminRequestHandler GetSubject()
        {
            _mockProviderRepository = Substitute.For <IMockProviderRepository>();
            _mockReporter           = Substitute.For <IReporter>();
            _mockRequestComparer    = Substitute.For <IProviderServiceRequestComparer>();

            return(new MockProviderAdminRequestHandler(
                       _mockProviderRepository,
                       _mockReporter,
                       _mockRequestComparer));
        }
 public MockProviderAdminRequestHandler(
     IMockProviderRepository mockProviderRepository,
     IFileSystem fileSystem,
     PactConfig pactConfig,
     ILog log)
 {
     _mockProviderRepository = mockProviderRepository;
     _fileSystem = fileSystem;
     _pactConfig = pactConfig;
     _log = log;
 }
 public MockProviderAdminRequestHandler(
     IMockProviderRepository mockProviderRepository,
     IFileSystem fileSystem,
     PactConfig pactConfig,
     ILog log)
 {
     _mockProviderRepository = mockProviderRepository;
     _fileSystem             = fileSystem;
     _pactConfig             = pactConfig;
     _log = log;
 }
        private IMockProviderAdminRequestHandler GetSubject()
        {
            _mockProviderRepository = Substitute.For<IMockProviderRepository>();
            _mockReporter = Substitute.For<IReporter>();
            _mockRequestComparer = Substitute.For<IProviderServiceRequestComparer>();

            return new MockProviderAdminRequestHandler(
                _mockProviderRepository,
                _mockReporter,
                _mockRequestComparer);
        }
Beispiel #10
0
 public MockProviderAdminRequestHandler(
     IMockProviderRepository mockProviderRepository,
     IReporter reporter,
     IFileSystem fileSystem,
     PactFileInfo pactFileInfo)
 {
     _mockProviderRepository = mockProviderRepository;
     _reporter          = reporter;
     _fileSystem        = fileSystem;
     _pactFileDirectory = pactFileInfo.Directory ?? Constants.DefaultPactFileDirectory;
 }
        private IMockProviderRequestHandler GetSubject()
        {
            _mockRequestMapper      = Substitute.For <IProviderServiceRequestMapper>();
            _mockResponseMapper     = Substitute.For <INancyResponseMapper>();
            _mockProviderRepository = Substitute.For <IMockProviderRepository>();
            _mockLog = Substitute.For <ILog>();

            _mockLog.Log(Arg.Any <LogLevel>(), Arg.Any <Func <string> >(), Arg.Any <Exception>(), Arg.Any <object[]>())
            .Returns(true);

            return(new MockProviderRequestHandler(_mockRequestMapper, _mockResponseMapper, _mockProviderRepository, _mockLog));
        }
        private IMockProviderAdminRequestHandler GetSubject()
        {
            _mockProviderRepository = Substitute.For <IMockProviderRepository>();
            _mockReporter           = Substitute.For <IReporter>();
            _mockFileSystem         = Substitute.For <IFileSystem>();

            return(new MockProviderAdminRequestHandler(
                       _mockProviderRepository,
                       _mockReporter,
                       _mockFileSystem,
                       new PactFileInfo(null)));
        }
        private IMockProviderAdminRequestHandler GetSubject(PactConfig pactConfig = null)
        {
            _mockProviderRepository = Substitute.For <IMockProviderRepository>();
            _mockFileSystem         = Substitute.For <IFileSystem>();
            _mockLog = Substitute.For <ILog>();

            _mockLog.Log(Arg.Any <LogLevel>(), Arg.Any <Func <string> >(), Arg.Any <Exception>(), Arg.Any <object[]>())
            .Returns(true);

            return(new MockProviderAdminRequestHandler(
                       _mockProviderRepository,
                       _mockFileSystem,
                       pactConfig ?? new PactConfig(),
                       _mockLog));
        }
        private IMockProviderAdminRequestHandler GetSubject(PactConfig pactConfig = null)
        {
            _mockProviderRepository = Substitute.For<IMockProviderRepository>();
            _mockFileSystem = Substitute.For<IFileSystem>();
            _mockLog = Substitute.For<ILog>();

            _mockLog.Log(Arg.Any<LogLevel>(), Arg.Any<Func<string>>(), Arg.Any<Exception>(), Arg.Any<object[]>())
                .Returns(true);

            return new MockProviderAdminRequestHandler(
                _mockProviderRepository,
                _mockFileSystem,
                pactConfig ?? new PactConfig(),
                _mockLog);
        }
        private IMockProviderRequestHandler GetSubject()
        {
            _mockRequestMapper = Substitute.For<IProviderServiceRequestMapper>();
            _mockResponseMapper = Substitute.For<INancyResponseMapper>();
            _mockProviderRepository = Substitute.For<IMockProviderRepository>();
            _mockLog = Substitute.For<ILog>();

            _mockLog.Log(Arg.Any<LogLevel>(), Arg.Any<Func<string>>(), Arg.Any<Exception>(), Arg.Any<object[]>())
                .Returns(true);

            return new MockProviderRequestHandler(_mockRequestMapper, _mockResponseMapper, _mockProviderRepository, _mockLog);
        }