public CourierService(IOnlineStoreContext context, ITownService townService, IAddressService addressService, IMapper mapper) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.townService = townService ?? throw new ArgumentNullException(nameof(townService)); this.addressService = addressService ?? throw new ArgumentNullException(nameof(addressService)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public DisasterController(IDisasterService disasterService, ICityService cityService, ITownService townService, IWebHostEnvironment hostEnvironment) { _disasterService = disasterService; _cityService = cityService; _townService = townService; _hostEnvironment = hostEnvironment; }
public HomeController(ILogger <HomeController> logger, IDisasterService disasterService, ICityService cityService, ITownService townService) { _logger = logger; _disasterService = disasterService; _cityService = cityService; _townService = townService; }
public ModifyUserCommand( IUserService userService, ITownService townService, IUserSessionService userSessionService) { this.userService = userService; this.townService = townService; this.userSessionService = userSessionService; }
public DeleteTownCommand(ITownService townService, IWriter writer, IReader reader, IAddressSevice addressSevice) { this.townService = townService ?? throw new ArgumentNullException(nameof(townService)); this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); this.reader = reader ?? throw new ArgumentNullException(nameof(reader)); this.addressSevice = addressSevice ?? throw new ArgumentNullException(nameof(addressSevice)); }
public LastAddedAdsViewComponent(IAdvertisementService advertisementService, UserManager <User> userManager, ICategoryService categoryService, ISubCategoryService subCategoryService, ITownService townService) { this.advertisementService = advertisementService; this.userManager = userManager; this.categoryService = categoryService; this.subCategoryService = subCategoryService; this.townService = townService; }
public UsersController(IUserService users, ITownService towns, UserManager <User> userManager, ITicketService tickets, ICompanyService companies) : base(towns) { this.users = users; this.userManager = userManager; this.tickets = tickets; this.companies = companies; }
public RoutesController(ITownService towns, IRouteService routes, ITicketService tickets, ICompanyService companies, UserManager <User> userManager) : base(towns) { this.routes = routes; this.tickets = tickets; this.userManager = userManager; this.companies = companies; }
private static ServiceInteraction AddTown(string county, string townName, ITownService townService) { Console.WriteLine($"Adding town: {townName} to county: {county}."); var serviceInteraction = townService.AddTown(county, townName).GetAwaiter().GetResult(); DescribeServiceInteraction(serviceInteraction); return(serviceInteraction); }
private static ServiceInteraction ShowTowns(string county, ITownService townService) { Console.WriteLine($"Showing towns in county: {county}."); var serviceInteraction = townService.GetTowns(county).GetAwaiter().GetResult(); DescribeServiceInteraction(serviceInteraction, "town"); return(serviceInteraction); }
public RoutesController(ICompanyRouteService routes, ITownService towns, UserManager <User> userManager, ICompanyService companies, IStationService stations) : base(towns) { this.routes = routes; this.userManager = userManager; this.companies = companies; this.stations = stations; }
public ReportController(IShopService shopService, IEducationalInstitutionService educationalInstitutionService, IBeneficiaryService beneficiaryService, IReportService reportService, ITownService townService) { _shopService = shopService; _educationalInstitutionService = educationalInstitutionService; _beneficiaryService = beneficiaryService; _reportService = reportService; _townService = townService; }
public UserManageModel(VehicleDbContext context, IAuthorizationService authorizationService, ITownService townService, IGroupService groupService, UserManager <VehicleUser> userManager) { _context = context; _authorizationService = authorizationService; _townService = townService; _groupService = groupService; _userManager = userManager; }
public QueryModel(IDriverRepository driverRepository, IAuthorizationService authorizationService, ITownService townService, IGroupService groupService, UserManager <VehicleUser> userManager) { _driverRepository = driverRepository; _authorizationService = authorizationService; _townService = townService; _groupService = groupService; _userManager = userManager; }
public QueryModel(IGroupService groupRepository, IAuthorizationService authorizationService, ITownService townService, VehicleDbContext dbContext, UserManager <VehicleUser> userManager) { _dbContext = dbContext; _groupRepository = groupRepository; _authorizationService = authorizationService; _townService = townService; _userManager = userManager; }
/// <summary> /// constructor /// </summary> /// <param name="conpanies"></param> /// <param name="townService"></param> /// <param name="useFullCategoryService"></param> public CompanySrvice( IRepository <Company> conpanies, ITownService townService, IUseFullCategoryService useFullCategoryService) { this.conpanies = conpanies; this.townService = townService; this.useFullCategoryService = useFullCategoryService; }
public QueryModel(IVehicleService vehicleService, IAuthorizationService authorizationService, ITownService townService, IGroupService groupService, UserManager <VehicleUser> userManager) { _vehicleService = vehicleService; _authorizationService = authorizationService; _townService = townService; _groupService = groupService; _userManager = userManager; }
public CreateModel(Socona.ImVehicle.Core.Data.VehicleDbContext context, IAuthorizationService authorizationService, ITownService townService, UserManager <VehicleUser> userManager, IGroupService groupService) { _context = context; _authorizationService = authorizationService; _townService = townService; _userManager = userManager; _groupService = groupService; }
public CompanyController(ICompanyService companyService, ITownService townService, ICityService cityService, IPerfectionService perfectionService, IJobAdvertService jobAdvertService, IEducationService educationService) { _companyService = companyService; _townService = townService; _cityService = cityService; _perfectionService = perfectionService; _jobAdvertService = jobAdvertService; _educationService = educationService; }
public EditModel(VehicleDbContext context, IAuthorizationService authorizationService, UserManager <VehicleUser> userManager, ITownService townService, IHostingEnvironment hostingEnvironment) { _context = context; _authorizationService = authorizationService; _userManager = userManager; _townService = townService; _hostingEnvironment = hostingEnvironment; }
public UsersController(IUserService iuserService, ICityService icityService, ITownService itownService, IGuideService iguidService, IClassifyService iclassifyService, IFavoriteService ifavoriteService, ICategoryService iCategoryService) { _iuserService = iuserService; _iclassifyService = iclassifyService; _ifavoriteService = ifavoriteService; _iCategoryService = iCategoryService; _iguidService = iguidService; _icityService = icityService; _itownService = itownService; }
public CreateModel(VehicleDbContext context, UserManager <VehicleUser> signInManager, IAuthorizationService authorizationService, ITownService townService, IHostingEnvironment hostingEnvironment) { _context = context; _userManager = signInManager; _authorizationService = authorizationService; _townService = townService; GroupItem = new GroupViewModel(new Core.Data.GroupItem()); _hostingEnvironment = hostingEnvironment; }
public AddressService( IEfRepository <Address> addressRepo, ITownService townService, IStreetService streetService, ISaveContext context) { this.addressRepo = addressRepo; this.townService = townService; this.streetService = streetService; this.context = context; }
public AccountController( UserManager<User> userManager, SignInManager<User> signInManager, ILogger<AccountController> logger, ITownService towns) { _userManager = userManager; _signInManager = signInManager; _logger = logger; this.towns = towns; }
public AdvertisementController(IAdvertisementService advertisementService, ICategoryService categoryService, ISubCategoryService subCategoryService, ITownService townService, IUserAdWishlistService userAdWishlistService, UserManager <User> userManager, IConfiguration configuration, INotificationService notificationService, IUserService userService) { this.advertisementService = advertisementService; this.categoryService = categoryService; this.subCategoryService = subCategoryService; this.townService = townService; this.userManager = userManager; this.userAdWishlistService = userAdWishlistService; this.configuration = configuration; this.notificationService = notificationService; this.userService = userService; }
public CommonController(IProvinceService provinceService, IDistrictService districtService, ITownService townService, IHighSchoolService highSchoolService, IEthnicService ethnicService) { ProvinceService = provinceService; DistrictService = districtService; TownService = townService; HighSchoolService = highSchoolService; EthnicService = ethnicService; }
public AccountController( UserManager <User> userManager, SignInManager <User> signInManager, ILogger <AccountController> logger, ITownService towns, ICompanyService companies) : base(towns) { this.userManager = userManager; this.signInManager = signInManager; this.logger = logger; this.companies = companies; }
public LandmarkController(ILandmarkService landmarkService, IPictureService pictureService, ITownService townService, ILocationService locationService, INotificationService notificationService, IUserNotificationService userNotificationService, IUserService userService) { this._landmarkService = landmarkService; this._pictureService = pictureService; this._townService = townService; this._locationService = locationService; this._notificationService = notificationService; this._userNotificationService = userNotificationService; this._userService = userService; }
public async Task SetUp() { var options = new DbContextOptionsBuilder <ShoplifyDbContext>() .UseInMemoryDatabase(databaseName: "towns") .Options; this.context = new ShoplifyDbContext(options); await context.Database.EnsureDeletedAsync(); await context.Database.EnsureCreatedAsync(); this.service = new TownService(context); }
public RegisterModel( UserManager <VehicleUser> userManager, SignInManager <VehicleUser> signInManager, ILogger <LoginModel> logger, IEmailSender emailSender, ITownService townService, IGroupService groupService) { _userManager = userManager; _signInManager = signInManager; _logger = logger; _emailSender = emailSender; _townService = townService; _groupService = groupService; }
public TownController(ITownService townService) { _townService = townService; }