public UserContactServiceTests()
        {
            this.storageBrokerMock = new Mock <IStorageBroker>();
            this.loggingBrokerMock = new Mock <ILoggingBroker>();

            this.userContactService = new UserContactService(
                storageBroker: this.storageBrokerMock.Object,
                loggingBroker: this.loggingBrokerMock.Object);
        }
        public async Task GetContacts()
        {
            try
            {
                _contactService = DependencyService.Get <IUserContactService>();
                var contacts = await _contactService.GetAllContacts();

                ContactList = new ObservableCollection <MobileUserContact>(contacts);
            }
            catch (System.Exception ex)
            {
            }
        }
Exemplo n.º 3
0
 public UserContactController(IUserContactService service)
 {
     _service = service;
 }
Exemplo n.º 4
0
 public UserContactsController(IUserContactService userContactService) =>
 this.userContactService = userContactService;
Exemplo n.º 5
0
 public UserController(IUserService userService, IUserContactService userContactService, IPhotoService photoService)
 {
     _userService        = userService;
     _userContactService = userContactService;
     _photoService       = photoService;
 }
Exemplo n.º 6
0
 public UserContactController(IUserContactService userContactService)
 {
     _userContactService = userContactService;
 }