public OrderComplaintController(IOrderService iOrderService, IShopService iShopService, IComplaintService iComplaintService, ITypeService iTypeService) { _iOrderService = iOrderService; _iShopService = iShopService; _iComplaintService = iComplaintService; _iTypeService = iTypeService; }
public ComplaintsController( IServiceResultMapper viewMapper, IComplaintService complaintService) { _viewMapper = viewMapper; _complaintService = complaintService; }
public void SetUp() { _loggingService = A.Fake <ILogService>(); _complaintService = A.Fake <IComplaintService>(); _facebookService = A.Fake <IFacebookService>(); _controller = new MapController(_facebookService, _loggingService, _complaintService); }
public void SetUp() { _loggingService = A.Fake<ILogService>(); _complaintService = A.Fake<IComplaintService>(); _facebookService = A.Fake<IFacebookService>(); _controller = new MapController(_facebookService, _loggingService, _complaintService); }
public LoginPageViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { UserName = new ValidatableObject <string>(); Password = new ValidatableObject <string>(); _complaintService = complaintService; AddValidations(); _userDialogs = userDialogs; }
public LowsPageViewModel(IUserDialogs userDialogs, IComplaintService complaintService, IAppSettings appSettings, IPageDialogService pageDialogService, INavigationService navigationService) : base(navigationService, appSettings, pageDialogService) { LowsList = new ObservableCollection <LowsModel>(); _complaintService = complaintService; IsBusy = true; IsBusy = false; }
public CompalintImageUploadPageViewModel(IUserDialogs userDialogs, IComplaintService complaintService, IAppSettings appSettings, IPageDialogService pageDialogService, INavigationService navigationService, IMediaService mediaService) : base(navigationService, appSettings, pageDialogService) { _complaintService = complaintService; // MediaAssets = new ObservableCollection<MediaAsset>(); //_mediaService = mediaService; //Xamarin.Forms.BindingBase.EnableCollectionSynchronization(MediaAssets, null, ObservableCollectionCallback); //_mediaService.OnMediaAssetLoaded += OnMediaAssetLoaded; }
/// <summary> /// Feed Controller constructor /// </summary> /// <param name="serviceProvider"></param> public FeedController(IServiceProvider serviceProvider) { _feedServices = serviceProvider.GetRequiredService <IFeedService>(); _complaintsServices = serviceProvider.GetRequiredService <IComplaintService>(); _repliesServices = serviceProvider.GetRequiredService <IReplyService>(); _ratingsServices = serviceProvider.GetRequiredService <IRatingService>(); _commentsService = serviceProvider.GetRequiredService <ICommentService>(); _userManager = serviceProvider.GetRequiredService <UserManager <User> >(); }
public HomeController(ICategoryService categoryService, IProductService productService, ICustomerService customerService, IRoleService roleService, ISupplierService supplierService, IOrderedService orderedService, IComplaintService complaintService) { _roleService = roleService; _categoryService = categoryService; _productService = productService; _customerService = customerService; _supplierService = supplierService; _orderedService = orderedService; _complaintService = complaintService; }
// PUT api/Complaint/5 //Need to modify it as what is actually allowed to update public IHttpActionResult Put(int id, [FromBody] NewComplaint complaint) { complaintService = new ComplaintService(); if (!ModelState.IsValid) { return(BadRequest(ModelState)); } complaintService.Update(id, complaint); return(StatusCode(HttpStatusCode.OK)); }
public ComplaintOverviewPageViewModel(IUserDialogs userDialogs, IComplaintService complaintService, IAppSettings appSettings, IPageDialogService pageDialogService, INavigationService navigationService) : base(navigationService, appSettings, pageDialogService) { _complaintService = complaintService; LowsList = new List <LowsModel>(); ComplaintImagesDTOs = new ObservableCollection <ComplaintImagesDTO>(); Complaint = _complaintService.GetNonComplaint(); ComplaintModelObj = _complaintService.GetNonComplaint(); _userDialogs = userDialogs; IsBusy = false; }
public MapController(IFacebookService facebookService, ILogService loggingService, IComplaintService complaintService) : base(facebookService, loggingService) { if (complaintService == null) { throw new ArgumentNullException("complaintService"); } _complaintService = complaintService; }
// GET api/Complaint/5 public IHttpActionResult Get(int id) { complaintService = new ComplaintService(); var Complaint = complaintService.GetById(id); if (Complaint != null) { return(Ok(Complaint)); } return(Content(HttpStatusCode.NotFound, APIMessageHelper.EntityNotFoundMessage("Complaint", id))); }
// DELETE api/Complaint/5 public IHttpActionResult Delete(int id) { complaintService = new ComplaintService(); var response = complaintService.Delete(id); if (response.Success) { return(Ok(id)); } return(Content(HttpStatusCode.BadRequest, response.Message)); }
public UpdateCityMailViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { _complaintService = complaintService; var UserCity = _complaintService.GetUserCity(); MCEmail = new ValidatableObject <string>(); FCCIEmail = new ValidatableObject <string>(); MCEmail.Value = UserCity.MCEmail; FCCIEmail.Value = UserCity.FcciEmail; IsBusy = false; AddValidations(); }
public SaveCityPageViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { _complaintService = complaintService; _userDialogs = userDialogs; MCEmail = new ValidatableObject <string>(); FCCIEmail = new ValidatableObject <string>(); AdminEmail = new ValidatableObject <string>(); CityName = new ValidatableObject <string>(); IsActive = new ValidatableObject <bool>(); MobileNumber = new ValidatableObject <string>(); AddValidations(); }
public ComplaintController(IComplaintService ComplaintService, ILookupService lookupService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IStudentService StudentService) : base() { this._ComplaintService = ComplaintService; this._lookupService = lookupService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._StudentService = StudentService; }
public JsonResult GetsellerAdminMessage() { CommentQuery commentQuery = new CommentQuery() { PageNo = 1, PageSize = 100001, ShopID = base.CurrentSellerManager.ShopId, IsReply = new bool?(false) }; CommentQuery commentQuery1 = commentQuery; int num = ServiceHelper.Create <ICommentService>().GetComments(commentQuery1).Models.Count(); ConsultationQuery consultationQuery = new ConsultationQuery() { PageNo = 1, PageSize = 10000, ShopID = base.CurrentSellerManager.ShopId, IsReply = new bool?(false) }; ConsultationQuery consultationQuery1 = consultationQuery; int num1 = ServiceHelper.Create <IConsultationService>().GetConsultations(consultationQuery1).Models.Count(); IOrderService orderService = ServiceHelper.Create <IOrderService>(); OrderQuery orderQuery = new OrderQuery() { PageNo = 1, PageSize = 10000, Status = new OrderInfo.OrderOperateStatus?(OrderInfo.OrderOperateStatus.WaitPay), ShopId = new long?(base.CurrentSellerManager.ShopId) }; int num2 = orderService.GetOrders <OrderInfo>(orderQuery, null).Models.Count(); IOrderService orderService1 = ServiceHelper.Create <IOrderService>(); OrderQuery orderQuery1 = new OrderQuery() { PageNo = 1, PageSize = 10000, Status = new OrderInfo.OrderOperateStatus?(OrderInfo.OrderOperateStatus.WaitDelivery), ShopId = new long?(base.CurrentSellerManager.ShopId) }; int num3 = orderService1.GetOrders <OrderInfo>(orderQuery1, null).Models.Count(); IComplaintService complaintService = ServiceHelper.Create <IComplaintService>(); ComplaintQuery complaintQuery = new ComplaintQuery() { PageNo = 1, PageSize = 10000, ShopId = new long?(base.CurrentSellerManager.ShopId), Status = new OrderComplaintInfo.ComplaintStatus?(OrderComplaintInfo.ComplaintStatus.WaitDeal) }; int num4 = complaintService.GetOrderComplaints(complaintQuery).Models.Count(); int num5 = num1 + num + num2 + num4 + num3; return(Json(new { UnReplyConsultations = num1, UnReplyComments = num, UnPayOrder = num2, UnComplaints = num4, UnDeliveryOrder = num3, AllMessageCount = num5 }, JsonRequestBehavior.AllowGet)); }
public void SetUp() { _loggingService = A.Fake <ILogService>(); _tagService = A.Fake <ITagService>(); _facebookService = A.Fake <IFacebookService>(); _complaintSeverityService = A.Fake <IComplaintSeverityService>(); _complaintService = A.Fake <IComplaintService>(); _userService = A.Fake <IUserService>(); _tagBuilder = A.Fake <ITagBuilder>(); _complaintBuilder = A.Fake <IComplaintBuilder>(); _controller = new ComplaintController(_facebookService, _loggingService, _tagService, _complaintSeverityService, _complaintService, _userService, _tagBuilder, _complaintBuilder); }
public ComplaintRegisterPageViewModel(IUserDialogs userDialogs, IComplaintService complaintService, IAppSettings appSettings, IPageDialogService pageDialogService, INavigationService navigationService) : base(navigationService, appSettings, pageDialogService) { ShopName = new ValidatableObject <string>(); ShopAddress = new ValidatableObject <string>(); Species = new ValidatableObject <string>(); Species.Value = "---Select species---"; DateOfInspection = new ValidatableObject <DateTime>(); DateOfInspection.Value = DateTime.Now; Comment = new ValidatableObject <string>(); AddValidations(); _userDialogs = userDialogs; _complaintService = complaintService; ComplaintModelObj = _complaintService.GetNonComplaint(); ComplaintImagesDTOs = new ObservableCollection <ComplaintImagesDTO>(); }
public IHttpActionResult Get() { complaintService = new ComplaintService(); var complaints = complaintService.GetAll(); if (complaints != null) { var complaintEntities = complaints as List <ComplaintView> ?? complaints.ToList(); if (complaintEntities.Any()) { return(Ok(complaintEntities)); } } return(Content(HttpStatusCode.NotFound, APIMessageHelper.ListNotFoundMessage("Complaints"))); }
public EditUserProfilePageViewModel(INavigationService navigationService, IAppSettings settings, IPageDialogService pageDialogService, IComplaintService complaintService, IAccountService accountService, IUserDialogs userDialogs) : base(navigationService, settings, pageDialogService) { UserEmail = new ValidatableObject <string>(); UserName = new ValidatableObject <string>(); UserCity = new ValidatableObject <string>(); UserMobile = new ValidatableObject <string>(); UserEmail.Value = _settings.Email; UserName.Value = _settings.Name; UserCity.Value = _settings.UserCity; UserMobile.Value = _settings.PhoneNumber; _complaintService = complaintService; _accountService = accountService; _userDialogs = userDialogs; AddValidations(); CurrentCity = new CitysModel(); }
public ComplaintController(IFacebookService facebookService, ILogService loggingService, ITagService tagService, IComplaintSeverityService complaintSeverityService, IComplaintService complaintService, IUserService userService, ITagBuilder tagBuilder, IComplaintBuilder complaintBuilder) : base(facebookService, loggingService) { if (complaintService == null) { throw new ArgumentNullException("complaintService"); } if (tagService == null) { throw new ArgumentNullException("tagService"); } if (complaintSeverityService == null) { throw new ArgumentNullException("complaintSeverityService"); } if (tagBuilder == null) { throw new ArgumentNullException("tagBuilder"); } if (complaintBuilder == null) { throw new ArgumentNullException("complaintBuilder"); } if (userService == null) { throw new ArgumentNullException("userService"); } _userService = userService; _tagBuilder = tagBuilder; _complaintBuilder = complaintBuilder; _complaintSeverityService = complaintSeverityService; _tagService = tagService; _complaintService = complaintService; }
public RegistrationsPageViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IAccountService accountService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { UserEmail = new ValidatableObject <string>(); UserPassword = new ValidatableObject <string>(); ConfirmPassword = new ValidatableObject <string>(); UserMobile = new ValidatableObject <string>(); UserCity = new ValidatableObject <string>(); UserName = new ValidatableObject <string>(); IsPrivacyPolicyCheck = new ValidatableObject <bool>(); IsPrivacyPolicyCheck.Value = false; UserCity.Value = "---Select city---"; _accountService = accountService; _userDialogs = userDialogs; _complaintService = complaintService; CurrentCity = new CitysModel(); AddValidations(); }
public IHttpActionResult Post([FromBody] NewComplaint complaint) { List <string> documents = new List <string>(); complaintService = new ComplaintService(); if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var response = complaintService.Add(complaint); if (response.Success) { //Create a new directory for the complaint created just now string directoryName = "Complaints-" + response.ReturnedId; var mappedPath = HttpContext.Current.Server.MapPath("~/Uploads/"); System.IO.Directory.CreateDirectory(mappedPath + directoryName); return(Ok(response.ReturnedId)); } return(Content(HttpStatusCode.BadRequest, response.Message)); }
public ComplaintStatusPageViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { _complaintService = complaintService; _userDialogs = userDialogs; IsBusy = false; }
public ComplaintController(IComplaintService complaintService) { _complaintService = complaintService; }
public void SetUp() { _loggingService = A.Fake<ILogService>(); _tagService = A.Fake<ITagService>(); _facebookService = A.Fake<IFacebookService>(); _complaintSeverityService = A.Fake<IComplaintSeverityService>(); _complaintService = A.Fake<IComplaintService>(); _userService = A.Fake<IUserService>(); _tagBuilder = A.Fake<ITagBuilder>(); _complaintBuilder = A.Fake<IComplaintBuilder>(); _controller = new ComplaintController(_facebookService, _loggingService, _tagService, _complaintSeverityService, _complaintService, _userService, _tagBuilder, _complaintBuilder); }
public OrderComplaintController(IComplaintService iComplaintService) { _iComplaintService = iComplaintService; }
public ComplaintController(IComplaintService service) { _service = service; }
public ComplaintController() { // Use DI here. _complaintService = new ComplaintService(); }
public CityAdminPageViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { _complaintService = complaintService; SelectedCityDTO = new CityDTO(); }
public SelectLawsPageViewModel(IUserDialogs userDialogs, IComplaintService complaintService, IAppSettings appSettings, IPageDialogService pageDialogService, INavigationService navigationService) : base(navigationService, appSettings, pageDialogService) { _complaintService = complaintService; ComplaintModelObj = new ComplaintModel(); }
public ComplaintLocationPageViewModel(INavigationService navigationservice, IAppSettings settings, IUserDialogs userDialogs, IPageDialogService pageDialogService, IComplaintService complaintService) : base(navigationservice, settings, pageDialogService) { _complaintService = complaintService; _userDialogs = userDialogs; ComplaintModelObj = new ComplaintModel(); }