public void Init()
		{
			Navigation = new NavigationMock();
			ObjectFactory = new ObjectFactoryMock<IPollResults>();
			PollFactory = new ObjectFactoryMock<IPoll>();
			PollCommentFactory = new ObjectFactoryMock<IPollComment>();
			MessageBox = new MessageBoxMock();
			ShareManager = new ShareManagerMock();
			SecondaryPinner = new SecondaryPinnerMock();
		}
Пример #2
0
		public void Init()
		{
			Navigation = new NavigationMock();
			ObjectFactory = new ObjectFactoryMock<IPollSubmissionCommand>();
			PollFactory = new ObjectFactoryMock<IPoll>();
			MessageBox = new MessageBoxMock();
			ShareManager = new ShareManagerMock();
			SecondaryPinner = new SecondaryPinnerMock();

			PropertiesChanged = new List<string>();

			ViewLocator.LocateTypeForModelType = (modelType, displayLocation, context) =>
			{
				return modelType;
			};
		}