Example #1
0
 public ServiceBusMessageHandler(IJsonConvertWrapper jsonConvertWrapper, IUtf8Wrapper utf8Wrapper, IVmsLogger <ServiceBusMessageHandler> logger, IServiceProvider serviceProvider)
 {
     _jsonConvertWrapper = jsonConvertWrapper;
     _utf8Wrapper        = utf8Wrapper;
     _logger             = logger;
     _serviceProvider    = serviceProvider;
 }
Example #2
0
 public ServiceBusMessagePublisher(IServiceBusConnectionFactory serviceBusConnectionFactory, IServiceSettings serviceSettings, IJsonConvertWrapper jsonConvertWrapper, IUtf8Wrapper utf8Wrapper, IVmsLogger <ServiceBusMessagePublisher> logger)
 {
     _serviceBusConnectionFactory = serviceBusConnectionFactory;
     _serviceSettings             = serviceSettings;
     _jsonConvertWrapper          = jsonConvertWrapper;
     _utf8Wrapper = utf8Wrapper;
     this._logger = logger;
 }
Example #3
0
        public ResourceScraper(IWebRequestWrapper webRequestWrapper, IJsonConvertWrapper jsonConvertWrapper)
        {
            if (webRequestWrapper == null)
            {
                throw new ArgumentNullException("webRequestWrapper");
            }
            if (jsonConvertWrapper == null)
            {
                throw new ArgumentNullException("jsonConvertWrapper");
            }

            _webRequestWrapper  = webRequestWrapper;
            _jsonConvertWrapper = jsonConvertWrapper;
        }
Example #4
0
 public void TestInit()
 {
     _jsonConvertWrapper = new JsonConvertWrapper <StarShipJsonResult>();
 }
Example #5
0
 public StarShipDeserializer(IJsonConvertWrapper <StarShipJsonResult> jsonConvertWrapper)
 {
     _jsonConvertWrapper = jsonConvertWrapper;
 }
 public JsonObjectConverter(IJsonConvertWrapper jsonConvertWrapper)
 {
     _jsonConvertWrapper = jsonConvertWrapper;
 }
Example #7
0
 public PhotoAlbumClient(HttpClient httpClient, IJsonConvertWrapper jsonWrapper)
 {
     _httpClient  = httpClient;
     _jsonWrapper = jsonWrapper;
 }
Example #8
0
 public PhraseService(IJsonConvertWrapper jsonConvert, IHttpClient httpClient, LuisSettings luisSettings)
 {
     _jsonConvert  = jsonConvert;
     _httpClient   = httpClient;
     _luisSettings = luisSettings;
 }
 public void TestInit()
 {
     _jsonConvertWrapper   = Substitute.For <IJsonConvertWrapper <StarShipJsonResult> >();
     _starShipDeserializer = new StarShipDeserializer(_jsonConvertWrapper);
 }