Exemple #1
0
 public MobileController(IMobileRepository mobileRepository,
                         IMobileService mobileService,
                         IMapper mapper)
 {
     _mobileRepository = mobileRepository;
     _mobileService    = mobileService;
     _mapper           = mapper;
 }
        public void ConstructorShouldFailWhenMobileServiceIsNull()
        {
            //Arrange
            IMobileService mobileService = null;

            //Act
            var controller = new OrdersController(mobileService);
        }
 public CustomerController(CustomerRegistrationService CustomerRegistrationService, IEmailService emailService, IMobileService MobileService, UsersService UsersService, IConfiguration configuration, OTPAuthenticationService OTPAuthenticationService, MerchantService MerchantService, NaqelUsersService NaqelUsersService, LookupTypeValuesService LookupTypeValuesService)
 {
     _CustomerRegistrationService = CustomerRegistrationService;
     _emailService             = emailService;
     _UsersService             = UsersService;
     _configuration            = configuration;
     _OTPAuthenticationService = OTPAuthenticationService;
     _MerchantService          = MerchantService;
     _NaqelUsersService        = NaqelUsersService;
     _MobileService            = MobileService;
     _LookupTypeValuesService  = LookupTypeValuesService;
 }
		public LandingPageViewModel(
			INavigation navigation,
			IMessageBox messageBox,
			IMobileService mobileService,
			IObjectFactory<IUserIdentity> objectFactory,
			IAppSettings appSettings)
			: base(navigation)
		{
			this.messageBox = messageBox;
			this.mobileService = mobileService;
			this.objectFactory = objectFactory;
			this.appSettings = appSettings;
		}
 public LandingPageViewModel(
     IMessageBox messageBox,
     IMobileService mobileService,
     IObjectFactory <IUserIdentity> objectFactory,
     IAppSettings appSettings,
     ILogger logger)
 {
     this.messageBox    = messageBox;
     this.mobileService = mobileService;
     this.objectFactory = objectFactory;
     this.appSettings   = appSettings;
     this.logger        = logger;
 }
Exemple #6
0
 public AzureStorageService(IMobileService mobileService)
 {
     this.mobileService = mobileService;
 }
Exemple #7
0
 public ProductsController(IMobileService mobileService)
 {
     this._mobileService = mobileService;
 }
Exemple #8
0
 public NotificationSender(IMobileService _mobileService, IMailService _mailService)
 {
     mobileService = _mobileService;
     mailService   = _mailService;
 }
 public MobileController(IMobileService mobile)
 {
     _Mobile = mobile;
 }
Exemple #10
0
 public HomeController(ILogger <HomeController> logger, IMobileService mobileService)
 {
     _logger        = logger;
     _mobileService = mobileService;
 }
Exemple #11
0
 public MobileController(IMobileService mobileService, IManufacturerService manufacturerService)
 {
     _mobileService       = mobileService;
     _manufacturerService = manufacturerService;
 }
Exemple #12
0
 public SetupController(IMobileService mobileService)
 {
     _mobileService = mobileService ?? throw new ArgumentNullException(nameof(mobileService));
 }
 public EnterMobileModel(IMobileService mobileService, ITestService testService)
 {
     _mobileService = mobileService;
     var s = testService.GetTitle();
     Debug.WriteLine(s);
 }
Exemple #14
0
		public AzureStorageService(IMobileService mobileService)
		{
			this.mobileService = mobileService;
		}
 public FilesController(IMobileService mobileService)
 {
     _mobileService = mobileService ?? throw new ArgumentNullException();
 }
Exemple #16
0
 public MobiileControllerTest()
 {
     _MobileService     = new MobileService();
     _MobiileController = new MobileController(_MobileService);
 }
Exemple #17
0
 public EmployeeManager(IMobileService mobileService)
 {
     MobileService = mobileService;
 }
Exemple #18
0
        public HomeController(IManufacturerService manufacturerService, IMobileService mobileService)
        {
            _manufacturerService = manufacturerService;
            _mobileService       = mobileService;

            #region SavingData
            if (_manufacturerService.Set().Count() == 0)
            {
                _manufacturerService.Save(new Manufacturer()
                {
                    Name = "Samsung"
                });
                _manufacturerService.Save(new Manufacturer()
                {
                    Name = "Apple"
                });
                _manufacturerService.Save(new Manufacturer()
                {
                    Name = "Huawei"
                });
                _manufacturerService.Save(new Manufacturer()
                {
                    Name = "Xiaomi"
                });
                _manufacturerService.Commit();
            }
            if (_mobileService.Set().Count() == 0)
            {
                _mobileService.Save(new Mobile()
                {
                    Name           = "Samsung Galaxy s7",
                    Price          = 700,
                    ImageURL       = "https://image-us.samsung.com/SamsungUS/home/mobile/phones/pdp/sm-g935/gallery/SMG935_edge_102116.jpg?$product-details-jpg$",
                    ManufacturerID = _manufacturerService.Set().Single(s => s.Name == "Samsung").ID,
                    OS             = "Android",
                    Processor      = "Smth",
                    Memory         = 16
                });
                _mobileService.Save(new Mobile()
                {
                    Name           = "Xiaomi Mi 6",
                    Price          = 650,
                    ImageURL       = "https://drop.ndtv.com/TECH/product_database/images/419201714803PM_635_xiaomi_mi_6.jpeg?downsize=*:180&output-quality=80",
                    ManufacturerID = _manufacturerService.Set().Single(s => s.Name == "Xiaomi").ID,
                    OS             = "Android",
                    Processor      = "Smth",
                    Memory         = 16
                });
                _mobileService.Save(new Mobile()
                {
                    Name           = "iPhone 6",
                    Price          = 999,
                    ImageURL       = "https://drop.ndtv.com/TECH/product_database/images/910201410301AM_635_apple_iphone_6.jpeg?downsize=*:180&output-quality=80",
                    ManufacturerID = _manufacturerService.Set().Single(s => s.Name == "Apple").ID,
                    OS             = "iOS",
                    Processor      = "Smth",
                    Memory         = 32,
                    VideoLink      = "https://www.youtube.com/watch?v=61TAqY03xwk"
                });
                _mobileService.Commit();
            }
            #endregion
        }
 public EnterMobileModel(IMobileService mobileService)
 {
     _mobileService = mobileService;
 }
 public MobilesController(IMobileService service, IOptions <PagingOptions> defaultPagingOptionsWrapper)
 {
     _mobileService        = service;
     _defaultPagingOptions = defaultPagingOptionsWrapper.Value;
 }
Exemple #21
0
 //构造方法注入
 public NotificationSender(IMobileService tmpService)
 {
     mobileService = tmpService;
 }
 /// <summary>
 /// Builds new IMobileService instance with provided URL
 /// </summary>
 /// <param name="url">overrides default URL</param>
 public void SetUrl(string url)
 {
     _mobileService = _refitFactory.BuildService <IMobileService>(url);
 }
 public HotelsController(IMobileService mobileService)
 {
     this.MobileService = mobileService;
 }
 public MobileController(IMobileService mobileService)
 {
     _mobileService = mobileService;
 }
 public AddTestData(IItemService itemService, IMobileService mobileService)
 {
     _itemService = itemService;
     _mobileService = mobileService;
 }