public static void ResetContext() { MvxSingleton.ClearAllSingletons(); var ioc = MvxSimpleIoCContainer.Initialize(null); ioc.RegisterSingleton(ioc); ioc.RegisterSingleton <IMvxTrace>(new UnitTestTrace()); MvxSingletonCache.Initialize(); ioc.RegisterSingleton <IMvxSettings>(new MvxSettings()); MvxTrace.Initialize(); }
public void InitializeSingletonCache() { if (MvxSingletonCache.Instance == null) { MvxSingletonCache.Initialize(); } if (MvxBindingSingletonCache.Instance == null) { MvxBindingSingletonCache.Initialize(); } }
static BaseMvvmCrossTest() { if (MvxSimpleIoCContainer.Instance == null) { MvxSingletonCache.Initialize(); MvxSimpleIoCContainer.Initialize(); MvxSimpleIoCContainer.Instance.RegisterSingleton(MvxSimpleIoCContainer.Instance); MvxSimpleIoCContainer.Instance.RegisterSingleton <IMvxTrace>(new TestTrace()); MvxSimpleIoCContainer.Instance.RegisterSingleton <IMvxSettings>(new MvxSettings()); MvxTrace.Initialize(); } }
static BaseMvvmCrossTests() { if (MvxSingleton <IMvxIoCProvider> .Instance != null) { return; } MvxSingletonCache.Initialize(); MvxSimpleIoCContainer.Initialize(); MvxSingleton <IMvxIoCProvider> .Instance.RegisterSingleton <IMvxTrace>(new TestTrace()); MvxSingleton <IMvxIoCProvider> .Instance.RegisterSingleton <IMvxSettings>(new MvxSettings()); MvxTrace.Initialize(); }
private static void InitializeSingletonCache() { MvxSingletonCache.Initialize(); }
protected virtual void InitializeSingletonCache() { MvxSingletonCache.Initialize(); }