Beispiel #1
0
        public WeatherUnlockedTests()
        {
            _mockClient = new MockWeatherUnlockedClientBuilder()
                          .WithDefaults()
                          .Build();

            var mapperProfile = new ResponseToModelProfile();
            var configuration = new MapperConfiguration(cfg => cfg.AddProfile(mapperProfile));

            _mapper = new Mapper(configuration);
        }
 public WeatherUnlockedService(IWeatherUnlockedClient client,
                               IMapper mapper)
 {
     _client = client;
     _mapper = mapper;
 }