public SearchSalesController(
     ISalesService salesService,
     ICategoriesService categoriesService,
     IMakesService makesService,
     IModelsService modelsService,
     IFuelTypesService fuelTypesService,
     IEuroStandartsService euroStandartsService,
     IGearboxesService gearboxesService,
     IColorsService colorsService,
     ICountriesService countriessService,
     ICitiesService citiesService,
     UserManager <ApplicationUser> userManager)
 {
     this.salesService         = salesService;
     this.categoriesService    = categoriesService;
     this.makesService         = makesService;
     this.modelsService        = modelsService;
     this.fuelTypesService     = fuelTypesService;
     this.euroStandartsService = euroStandartsService;
     this.gearboxesService     = gearboxesService;
     this.colorsService        = colorsService;
     this.countriesService     = countriessService;
     this.citiesService        = citiesService;
     this.userManager          = userManager;
 }
        private void InitializeViewModel(IPolicyDataService policyDataService, ICountriesService countriesService)
        {
            PolicyDataService = policyDataService;
            CountriesService = countriesService;

            SetInsuranceTypesList();
            SetCreditCardTypesList();

            RefreshPolicyListCommand = new RelayCommand(LoadInsurancePolicies, () => IsPathToFileSpecified);
            SavePoliciesCommand = new RelayCommand(SavePolicies, () => IsPathToFileSpecified);
            ExitApplicationCommand = new RelayCommand(ExitApplication);
            CloseFileCommand = new RelayCommand(CloseFile, () => IsPathToFileSpecified);
            OpenFileDialogCommand = new RelayCommand(OpenFileDialog);

            PropertyChanged += InsurancePolicyViewModel_PropertyChanged;
            PolicyDataService.PoliciesChanged += _dataService_PoliciesChanged;

            try
            {
                // This block throws exception with in unit test. Unable to find required Reference to
                // eliminate the exception. The issue is scheme: "pack://" is not recognized outside of the
                // WPF project.
                UpToDateStatusImage = LoadBitmapImage(upToDateStatusImagePath);
                OutOfDateStatusImage = LoadBitmapImage(outOfDateStatusImagePath);
            }
            catch (UriFormatException) { }
        }
Beispiel #3
0
 public CountriesController(
     IRouteProvider routeProvider,
     ICountriesService countriesService)
 {
     _routeProvider    = routeProvider;
     _countriesService = countriesService;
 }
Beispiel #4
0
 public ProductsController(IProductService productService, IUnitService unitService, IMapper mapper, ICountriesService countriesService)
 {
     _productService   = productService;
     _mapper           = mapper;
     _unitService      = unitService;
     _countriesService = countriesService;
 }
 public CountriesController(
     ICountriesService countriesService,
     IRegionsService regionsService)
 {
     _countriesService = countriesService;
     _regionsService = regionsService;
 }
 public SearchController(ICountriesService countriesService, IStatesService statesService, ICitiesService citiesService, IZipCodesService zipCodesService)
 {
     CountriesService = countriesService;
     StatesService = statesService;
     CitiesService = citiesService;
     ZipCodesService = zipCodesService;
 }
Beispiel #7
0
 public UseCase(
     ICountriesService countriesService,
     IOutputPort outputPort)
 {
     _countriesService = countriesService;
     _outputPort       = outputPort;
 }
 public SalesController(
     IWebHostEnvironment webHostEnvironment,
     ICarsService carsService,
     ISalesService salesService,
     ICategoriesService categoriesService,
     IMakesService makesService,
     IModelsService modelsService,
     IFuelTypesService fuelTypesService,
     IEuroStandartsService euroStandartsService,
     IGearboxesService gearboxesService,
     IColorsService colorsService,
     ICountriesService countriessService,
     ICitiesService citiesService,
     UserManager <ApplicationUser> userManager,
     ICaptchaValidator captchaValidator)
 {
     this.webHostEnvironment   = webHostEnvironment;
     this.carsService          = carsService;
     this.salesService         = salesService;
     this.categoriesService    = categoriesService;
     this.makesService         = makesService;
     this.modelsService        = modelsService;
     this.fuelTypesService     = fuelTypesService;
     this.euroStandartsService = euroStandartsService;
     this.gearboxesService     = gearboxesService;
     this.colorsService        = colorsService;
     this.countriesService     = countriessService;
     this.citiesService        = citiesService;
     this.userManager          = userManager;
     this.captchaValidator     = captchaValidator;
 }
Beispiel #9
0
 public SearchPropertiesController(
     IPropertiesService propertiesService,
     ICountriesService countriesService)
 {
     this.propertiesService = propertiesService;
     this.countriesService  = countriesService;
 }
Beispiel #10
0
 public CountriesController(
     CountriesDbContext context,
     ICountriesService countriesService)
 {
     this.context          = context;
     this.countriesService = countriesService;
 }
 public CountriesController(
     ICountriesService countriesService,
     UserManager <ApplicationUser> userManager)
 {
     this.countriesService = countriesService;
     this.userManager      = userManager;
 }
        private void InitializeViewModel(IPolicyDataService policyDataService, ICountriesService countriesService)
        {
            PolicyDataService = policyDataService;
            CountriesService  = countriesService;

            SetInsuranceTypesList();
            SetCreditCardTypesList();

            RefreshPolicyListCommand = new RelayCommand(LoadInsurancePolicies, () => IsPathToFileSpecified);
            SavePoliciesCommand      = new RelayCommand(SavePolicies, () => IsPathToFileSpecified);
            ExitApplicationCommand   = new RelayCommand(ExitApplication);
            CloseFileCommand         = new RelayCommand(CloseFile, () => IsPathToFileSpecified);
            OpenFileDialogCommand    = new RelayCommand(OpenFileDialog);

            PropertyChanged += InsurancePolicyViewModel_PropertyChanged;
            PolicyDataService.PoliciesChanged += _dataService_PoliciesChanged;

            try
            {
                // This block throws exception with in unit test. Unable to find required Reference to
                // eliminate the exception. The issue is scheme: "pack://" is not recognized outside of the
                // WPF project.
                UpToDateStatusImage  = LoadBitmapImage(upToDateStatusImagePath);
                OutOfDateStatusImage = LoadBitmapImage(outOfDateStatusImagePath);
            }
            catch (UriFormatException) { }
        }
Beispiel #13
0
 public LakesController(
     ICountriesService countriesService,
     ILakesService lakesService)
 {
     this.countriesService = countriesService;
     this.lakesService     = lakesService;
 }
Beispiel #14
0
 public HomeController(
     ICountriesService countriesService,
     ITownsService townsService,
     ICurrenciesService currenciesService)
     : base(townsService, currenciesService)
 {
     this.countriesService = countriesService;
 }
        public CountriesServiceTests()
        {
            _dummyCountriesData = new DummyCountriesData();

            _mockCachedLookupService = new Mock <ICachedLookupService>();

            _countriesService = new CountriesService(_mockCachedLookupService.Object, "");
        }
Beispiel #16
0
        public MainPageViewModel(ICountriesService countriesService, IMapper mapper, IPageDialogService pageDialogService)
        {
            this.countriesService  = countriesService;
            this.mapper            = mapper;
            this.pageDialogService = pageDialogService;

            SearchCountryCommand = new DelegateCommand(async() => await SearchCountry());
        }
Beispiel #17
0
        public WeatherController()
        {
            // Do kontrolerów warto byłoby zbudować fabrykę, która rozwiązywałaby
            // zależności przez konstruktor i podmienić standardową fabrykę WebAPI/MVC

            _countriesService = Container.Resolve <ICountriesService>();
            _weatherService   = Container.Resolve <IWeatherService>();
        }
Beispiel #18
0
 public BeerController(IBeersService beers, IIdentifierProvider identifier, ICountriesService countries, IBeerTypesService beerTypes, ICommentsService comments)
 {
     this.beers      = beers;
     this.countries  = countries;
     this.beerTypes  = beerTypes;
     this.identifier = identifier;
     this.comments   = comments;
 }
Beispiel #19
0
        public CountriesServiceTests()
        {
            this.InitializeMapper();
            this.InitializeDatabaseAndRepositories();
            this.InitializeFields();

            this.countriesService = new CountriesService(this.countriesRepository);
        }
Beispiel #20
0
 public BeerController(IBeersService beers, IIdentifierProvider identifier, ICountriesService countries, IBeerTypesService beerTypes, ICommentsService comments)
 {
     this.beers = beers;
     this.countries = countries;
     this.beerTypes = beerTypes;
     this.identifier = identifier;
     this.comments = comments;
 }
Beispiel #21
0
 public LeaguesController(
     ILeaguesService leaguesService,
     ICountriesService countriesService,
     IFixturesService fixturesService)
 {
     this.leaguesService   = leaguesService;
     this.countriesService = countriesService;
     this.fixturesService  = fixturesService;
 }
Beispiel #22
0
        public CountriesController(ICountriesService countriesService)
        {
            if (countriesService == null)
            {
                throw new ArgumentNullException("Country service cannot be null");
            }

            this.countriesService = countriesService;
        }
 public CitiesController(
     ICountriesService countriesService,
     ICitiesService citiesService,
     ICloudinaryService cloudinaryService)
 {
     this.countriesService  = countriesService;
     this.citiesService     = citiesService;
     this.cloudinaryService = cloudinaryService;
 }
Beispiel #24
0
 public AddressesService(
     IDeletableEntityRepository <Address> addressesRepository,
     ICountriesService countriesService,
     ITownsService townsService)
 {
     this.addressesRepository = addressesRepository;
     this.countriesService    = countriesService;
     this.townsService        = townsService;
 }
 public CitiesController(ICountriesService countriesService,
                         ICitiesService citiesService,
                         IActionResultMapper <CitiesController> actionResultMapper)
 {
     ;
     _countriesService   = countriesService;
     _citiesService      = citiesService;
     _actionResultMapper = actionResultMapper;
 }
Beispiel #26
0
 public ManageCountriesController(ICountriesService countriesService,
                                  ICountryModelFactory countryModelFactory,
                                  ILocalizationService localizationService,
                                  ILocalizedEntityService localizedEntityService)
 {
     _countriesService       = countriesService;
     _countryModelFactory    = countryModelFactory;
     _localizationService    = localizationService;
     _localizedEntityService = localizedEntityService;
 }
        public GeoInfoController(ICitiesService citiesService,
            IUserContext userContext,
            ICountriesService countriesService)
            : base(userContext)
        {
            Contract.Requires<ArgumentNullException>(citiesService.IsNotNull());
            Contract.Requires<ArgumentNullException>(countriesService.IsNotNull());

            this.citiesService = citiesService;
            this.countriesService = countriesService;
        }
 public CarsController(
     ICarsService carsService,
     IParkingsService parkingsService,
     ITownsService townsService,
     ICountriesService countriesService)
 {
     this.carsService      = carsService;
     this.parkingsService  = parkingsService;
     this.townsService     = townsService;
     this.countriesService = countriesService;
 }
 public TownsController(
     ITownsService townsService,
     ICountriesService countriesService,
     IParkingsService parkingsService,
     IParkingSlotsService parkingSlotsService)
 {
     this.townsService        = townsService;
     this.countriesService    = countriesService;
     this.parkingsService     = parkingsService;
     this.parkingSlotsService = parkingSlotsService;
 }
 public ManufacturersController(
     IManufacturersService manufacturersService,
     ICountriesService countriesService,
     IUsersService usersService,
     IWebHostEnvironment webHostEnvironment)
 {
     this.manufacturersService = manufacturersService;
     this.countriesService     = countriesService;
     this.usersService         = usersService;
     this.webHostEnvironment   = webHostEnvironment;
 }
Beispiel #31
0
 public LoadsController(
     ILoadsService loadsService,
     ICountriesService countriesService,
     IPriorityTypesService priorityTypesService,
     ITruckTypesService truckTypesService)
 {
     this.loadsService         = loadsService;
     this.countriesService     = countriesService;
     this.priorityTypesService = priorityTypesService;
     this.truckTypesService    = truckTypesService;
 }
Beispiel #32
0
 public HomeController(
     ISalesService salesService,
     UserManager <ApplicationUser> userManager,
     ILogger <HomeController> logger,
     ICountriesService countriesService)
 {
     this.salesService     = salesService;
     this.userManager      = userManager;
     this.logger           = logger;
     this.countriesService = countriesService;
 }
Beispiel #33
0
        public GeoInfoController(ICitiesService citiesService,
                                 IUserContext userContext,
                                 ICountriesService countriesService)
            : base(userContext)
        {
            Contract.Requires <ArgumentNullException>(citiesService.IsNotNull());
            Contract.Requires <ArgumentNullException>(countriesService.IsNotNull());

            this.citiesService    = citiesService;
            this.countriesService = countriesService;
        }
 public MoviesController(
     IMoviesService moviesService,
     IDirectorsService directorsService,
     IGenresService genresService,
     ICountriesService countriesService)
 {
     this.moviesService    = moviesService;
     this.directorsService = directorsService;
     this.genresService    = genresService;
     this.countriesService = countriesService;
 }
Beispiel #35
0
 public ProfileController(SignInManager<ApplicationUser> signInManager,
     UserManager<ApplicationUser> userManager,
     ApplicationDbContext dbContext,
     IUsersService usersService, IUserInfosService userInfosService, ICitiesService citiesService,
     ICountriesService countriesService,
     IHostingEnvironment env)
     : base(userManager, dbContext)
 {
     _signInManager = signInManager;
     _usersService = usersService;
     _userInfosService = userInfosService;
     _citiesService = citiesService;
     _countriesService = countriesService;
     _env = env;
 }
        public ClientProfileManager(
            IClientProfileService clientProfileService, 
            ICitiesService citiesService, 
            ICountriesService countriesService,
            IRepository<Property> propertyRepository,
            IObligationRepository obligationRepository)
        {
            Contract.Requires<ArgumentNullException>(clientProfileService.IsNotNull());
            Contract.Requires<ArgumentNullException>(citiesService.IsNotNull());
            Contract.Requires<ArgumentNullException>(countriesService.IsNotNull());

            this.clientProfileService = clientProfileService;
            this.citiesService = citiesService;
            this.countriesService = countriesService;
            this.propertyRepository = propertyRepository;
            this.obligationRepository = obligationRepository;
        }
Beispiel #37
0
 public PlaceController(IPlacesService places, IIdentifierProvider identifier, ICountriesService countries)
 {
     this.places = places;
     this.countries = countries;
     this.identifier = identifier;
 }
Beispiel #38
0
 public AllPlacesController(IPlacesService places, ICountriesService countries)
 {
     this.places = places;
     this.countries = countries;
 }
Beispiel #39
0
 public AllBeersController(IBeersService beers, IBeerTypesService beerTypes, ICountriesService countries)
 {
     this.beers = beers;
     this.beerTypes = beerTypes;
     this.countries = countries;
 }
 public CountriesController(ICountriesService countriesService)
 {
     CountriesService = countriesService;
 }
Beispiel #41
0
 public AccountController(ICountriesService countries, IStudentInfosService studentInfos, IDirectorInfosService directorInfos)
 {
     this.countries = countries;
     this.studentInfos = studentInfos;
     this.directorInfos = directorInfos;
 }
Beispiel #42
0
 public CountryProvider(ICountriesService countriesService)
 {
     this.countriesService = countriesService;
 }
 public InsurancePolicyViewModel(IPolicyDataService policyDataService, ICountriesService countriesService)
 {
     InitializeViewModel(policyDataService,countriesService);
 }
 public StatesController(ICountriesService countriesService, IStatesService statesService)
 {
     CountriesService = countriesService;
     StatesService = statesService;
 }
 public UniversitiesController(IUniversitiesService universities, ICountriesService countries)
 {
     this.universities = universities;
     this.countries = countries;
 }
 public CountriesController(UserManager<ApplicationUser> userManager,
                            ICountriesService countriesService)
     : base(userManager)
 {
     _countriesService = countriesService;
 }
 public CountriesController(ICountriesService countries)
 {
     this.countries = countries;
 }
Beispiel #48
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, ICountriesService countries)
 {
     this.UserManager = userManager;
     this.SignInManager = signInManager;
     this.countries = countries;
 }