Last active
May 5, 2018 06:02
-
-
Save PulkitSethi1984/fda463951758f9ebff3f716c62dcdeb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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