Add mock end points

This commit is contained in:
Pepe Rivera 2019-05-02 12:34:07 -07:00
commit dfa4556a33
2 changed files with 14 additions and 2 deletions

View file

@ -685,6 +685,18 @@ void CurrencyDataLoader::GuaranteeSelectedUnits()
isConversionTargetSet = true;
}
}
// If still not set for either source or target, just select the first currency in the list
if (!isConversionSourceSet && !m_currencyUnits.empty())
{
m_currencyUnits[0].isConversionSource = true;
}
if (!isConversionTargetSet && !m_currencyUnits.empty())
{
m_currencyUnits[0].isConversionTarget = true;
}
}
void CurrencyDataLoader::NotifyDataLoadFinished(bool didLoad)

View file

@ -7,8 +7,8 @@ namespace CalculatorApp
{
namespace DataLoaders
{
static constexpr auto sc_MetadataUriLocalizeFor = L"";
static constexpr auto sc_RatiosUriRelativeTo = L"";
static constexpr auto sc_MetadataUriLocalizeFor = L"https://go.microsoft.com/fwlink/?linkid=2091028&localizeFor=";
static constexpr auto sc_RatiosUriRelativeTo = L"https://go.microsoft.com/fwlink/?linkid=2091307&localCurrency=";
static constexpr auto sc_ApiKey = L"";
}
}