Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
View ILoginView.cs
public interface ILoginView
void SetLoadingState();
void SetDelayedState();
void ClearFields();
void ShowFingerPrint();
void ShowPasscode();
void ShowLogin();
View LoginViewController.cs
public partial class LoginViewController : UIViewController
private ILoginPresenter _loginPresenter = null;
private IAsyncSubscriber _listenerToken = null;
public override void ViewDidLoad()
View AppDelegate.cs
public class AppDelegate : UIApplicationDelegate
private void LoadDependencies()
// Load dependencies in methods that run once per run of the application
IDependencyService serviceLocator = DependencyService.Instance;
if (null == serviceLocator.GetService<ILoginPresenter)
View INetworkService.cs
public interface INetworkService
Task<NetResult<TResult>> GetAsync<TResult>(string uri, string token = "");
Task<NetResult<TResult>> PostAsync<TResult>(string uri, TResult data, string token = "", string header = "");
Task<NetResult<TResult>> PostAsync<TResult>(string uri, string data, string clientId, string clientSecret);
Task<NetResult<TResult>> PutAsync<TResult>(string uri, TResult data, string token = "", string header = "");
View AppServices.cs
public void RegisterServices()
var builder = new ContainerBuilder();
View MainApplication.cs
public void LoadApiData(string jsonData)
var rp = AppContainer.Instance.Resolve<INetworkService>() as MockNetworkService;
View MockNetworkService.CS
public enum ServiceMode
public class Request
public string Uri { get; set; }
public string RelativeUri { get; set; }
View ItemListTest.cs
public class ItemListTest : BaseTest
public ItemListTest(Platform platform) : base(platform)
{ }
public void ItemListBasicTest()
View BaseViewModel.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace App.Common.Core.ViewModels
View INavigationService.cs
using System;
using System.Threading.Tasks;
namespace App.Common.Core.Services.App
public interface INavigationService
Task NavigateToAsync<TViewModel>(object parameter);