Skip to content

Instantly share code, notes, and snippets.

@PulkitSethi1984
Last active May 5, 2018 06:02
Show Gist options
  • Save PulkitSethi1984/fda463951758f9ebff3f716c62dcdeb4 to your computer and use it in GitHub Desktop.
Save PulkitSethi1984/fda463951758f9ebff3f716c62dcdeb4 to your computer and use it in GitHub Desktop.
#if AUTOMATION
[Export("LoadApiData")]
public void LoadApiData(string jsonData)
{
var rp = AppContainer.Instance.Resolve<INetworkService>() as MockNetworkService;
rp.LoadApiData(jsonData);
}
[Export("ReloadApiData")]
public void ReloadApiData(string jsonData)
{
var rp = AppContainer.Instance.Resolve<INetworkService>() as MockNetworkService;
rp.ReloadApiData(jsonData);
}
#endif
public void LoadApiData(string jsonData)
{
LoadMockData(jsonData, false);
}
public void ReloadApiData(string jsonData)
{
LoadMockData(jsonData, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment