public void MapStringToClassSuccessMultipleProperties()
        {
            JsonMapperService jsonMapperService = new JsonMapperService();
            const string inputString = "{\"Key\":\"TestKey\", \"Value\":\"TestValue\"}";

            TestModel model = jsonMapperService.MapStringToClass<TestModel>(inputString);

            Assert.IsTrue(model.Key.Equals("TestKey") && model.Value.Equals("TestValue"));
        }
        public void MapStringToClassSuccessSingleProperty()
        {
            JsonMapperService jsonMapperService = new JsonMapperService();
            const string inputString = "{\"Key\":\"TestKey\"}";

            TestModel model = jsonMapperService.MapStringToClass<TestModel>(inputString);

            Assert.IsTrue(model.Key.Equals("TestKey"));
        }
        public void MapStringToClassSuccessMultipleProperties()
        {
            JsonMapperService jsonMapperService = new JsonMapperService();
            const string      inputString       = "{\"Key\":\"TestKey\", \"Value\":\"TestValue\"}";

            TestModel model = jsonMapperService.MapStringToClass <TestModel>(inputString);

            Assert.IsTrue(model.Key.Equals("TestKey") && model.Value.Equals("TestValue"));
        }
        public void MapStringToClassSuccessSingleProperty()
        {
            JsonMapperService jsonMapperService = new JsonMapperService();
            const string      inputString       = "{\"Key\":\"TestKey\"}";

            TestModel model = jsonMapperService.MapStringToClass <TestModel>(inputString);

            Assert.IsTrue(model.Key.Equals("TestKey"));
        }
 /// <summary>
 /// Default c'tor with predefined Services
 /// </summary>
 public PredefinedServiceFacade()
 {
     RequestService            = new RequestService();
     RequestParameterService   = new UrlRequestParameterService();
     MappingService            = new JsonMapperService();
     GeolocationMappingService = new GoogleGeolocationMappingService();
     CachingService            = new CachingService();
     SerializationService      = new JsonSerializationService();
     ThreadService             = new ThreadService();
 }
 /// <summary>
 /// Default c'tor with predefined Services
 /// </summary>
 public PredefinedServiceFacade()
 {
     RequestService = new RequestService();
     RequestParameterService = new UrlRequestParameterService();
     MappingService = new JsonMapperService();
     GeolocationMappingService = new GoogleGeolocationMappingService();
     CachingService = new CachingService();
     SerializationService = new JsonSerializationService();
     ThreadService = new ThreadService();
     MailService = new SystemNetMail();
 }