Skip to content

Instantly share code, notes, and snippets.

@Clancey
Created March 9, 2018 00:42
Show Gist options
  • Save Clancey/573fb5960d0076127c0188501d3643e9 to your computer and use it in GitHub Desktop.
Save Clancey/573fb5960d0076127c0188501d3643e9 to your computer and use it in GitHub Desktop.
public class TestPlatformService : IPlatformServices
{
public TestPlatformService()
{
}
public bool IsInvokeRequired => false;
public string RuntimePlatform => "UnitTests";
public void BeginInvokeOnMainThread(Action action)
{
action();
}
public Ticker CreateTicker()
{
throw new NotImplementedException();
}
public Assembly[] GetAssemblies() => AppDomain.CurrentDomain.GetAssemblies();
public string GetMD5Hash(string input)
{
throw new NotImplementedException();
}
public double GetNamedSize(NamedSize size, Type targetElementType, bool useOldSizes)
{
throw new NotImplementedException();
}
public Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public IIsolatedStorageFile GetUserStoreForApplication()
{
throw new NotImplementedException();
}
public void OpenUriAction(Uri uri)
{
throw new NotImplementedException();
}
public void QuitApplication()
{
throw new NotImplementedException();
}
public void StartTimer(TimeSpan interval, Func<bool> callback)
{
throw new NotImplementedException();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment