Last active
December 4, 2017 06:07
-
-
Save 15mgm15/251dcdb480be1e2b7389100f5b321133 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
public class UnitTestViewModel | |
{ | |
public Command LoadDataCommand { get; set; } | |
public string Data { get; set; } | |
public UnitTestViewModel() | |
{ | |
LoadDataCommand = new Command(async () => await LoadData()); | |
} | |
public async Task LoadData() | |
{ | |
Data = await DependencyService.Get<IDeliverServerSideData>().GetJsonData(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment