/// <summary>
 /// Gets the <see cref="IOddsChange{T}"/> implementation representing the received odds change message translated to the specified languages
 /// </summary>
 /// <param name="culture">A <see cref="CultureInfo"/> specifying the language of which to translate the message or a null reference to translate the message
 /// to languages specified in the configuration</param>
 /// <returns>Returns the <see cref="IOddsChange{T}"/> implementation representing the received odds change message translated to the specified languages</returns>
 public IOddsChange <T> GetOddsChange(CultureInfo culture = null)
 {
     return(_messageMapper.MapOddsChange <T>(
                _feedMessage,
                culture == null
             ? _defaultCultures
             : new [] { culture },
                _rawMessage));
 }
        public void OddsChangeIsMapped()
        {
            var stream  = FileHelper.OpenFile(TestData.FeedXmlPath, "odds_change.xml");
            var message = _deserializer.Deserialize <odds_change>(stream);

            TestData.FillMessageTimestamp(message);
            message.SportId = URN.Parse("sr:sport:1000");
            _validator.Validate(message);
            var entity = _mapper.MapOddsChange <ICompetition>(message, new [] { TestData.Culture }, null);

            Assert.IsNotNull(entity, "entity should not be a null reference");
        }