Ejemplo n.º 1
0
 private PhoneSelector_Accessor GetSelector(IEnumerable<IPhoneDeviceInfo> phones, bool alwaysPrompt, string autoSelectPath, bool warnAboutRecentSync)
 {
     MockPhoneSelectOptions options = new MockPhoneSelectOptions();
     options.PromptForPhoneChoice = alwaysPrompt;
     options.PhoneDataPath = autoSelectPath;
     options.WarnAboutMoreRecentSync = warnAboutRecentSync;
     return new PhoneSelector_Accessor(phones, options);
 }
Ejemplo n.º 2
0
        private ConversationWindowModel GetPopulatedConversationWindowModel()
        {
            IDisplayOptions displayOptions = new MockDisplayOptions();
            IPhoneSelectOptions phoneSelectOptions = new MockPhoneSelectOptions();
            ConversationWindowModel model = new ConversationWindowModel(displayOptions, phoneSelectOptions);
            IConversationManager conversationManager = GetConversationManager(displayOptions);
            model.ConversationManager = conversationManager;

            return model;
        }
Ejemplo n.º 3
0
 private PhoneSelector_Accessor GetSelector(IEnumerable<IPhoneDeviceInfo> phones)
 {
     MockPhoneSelectOptions options = new MockPhoneSelectOptions();
     return new PhoneSelector_Accessor(phones, options);
 }
Ejemplo n.º 4
0
        private ConversationWindowModel GetEmptyPopulatedConversationWindowModel()
        {
            IDisplayOptions displayOptions = new MockDisplayOptions();
            IPhoneSelectOptions phoneSelectOptions = new MockPhoneSelectOptions();
            ConversationWindowModel model = new ConversationWindowModel(displayOptions, phoneSelectOptions);
            model.ConversationManager = DummyConversationDataGenerator.GetConversationManagerEmpty();

            return model;
        }