Created
June 10, 2013 20:28
-
-
Save gshackles/5751990 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using Cirrious.CrossCore; | |
using Cirrious.CrossCore.Core; | |
using Cirrious.CrossCore.IoC; | |
using Cirrious.MvvmCross.Platform; | |
using Cirrious.MvvmCross.Plugins.Messenger; | |
using Cirrious.MvvmCross.Test.Core; | |
using Cirrious.MvvmCross.Views; | |
using NUnit.Framework; | |
/* using blah.blah.blah */ | |
namespace AppCore.Tests.ViewModelTests | |
{ | |
[TestFixture] | |
public abstract class ViewModelTestsBase : MvxIoCSupportingTest | |
{ | |
protected IMvxMessenger Messenger { get; private set; } | |
protected MockAnalyticsEngine AnalyticsEngine { get; private set; } | |
protected MockMvxViewDispatcher Dispatcher { get; private set; } | |
protected IMvxIoCProvider Container { get; private set; } | |
[SetUp] | |
public void SetUp() | |
{ | |
MvxSingleton.ClearAllSingletons(); | |
ClearAll(); | |
Dispatcher = new MockMvxViewDispatcher(); | |
Ioc.RegisterSingleton<IMvxMainThreadDispatcher>(Dispatcher); | |
Ioc.RegisterSingleton<IMvxViewDispatcher>(Dispatcher); | |
Messenger = new MvxMessengerHub(); | |
AnalyticsEngine = new MockAnalyticsEngine(); | |
Mvx.RegisterSingleton<IMvxStringToTypeParser>(new MvxStringToTypeParser()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment