public ReportViewModel(IReportRepo reportRepo, IWindowManager windowManager, Owner owner) { _reportRepo = reportRepo; _windowManager = windowManager; _owner = owner; Animals = new BindableCollection <Animal>(_reportRepo.GetAnimals(_owner)); }
public UnitOfWork(ApplicationDbContext dbContext) { _dbContext = dbContext; Customers = new CustomerRepo(_dbContext); CustomerCategories = new CustomerCategoryRepo(_dbContext); DuraformSeries = new DuraformSerieRepo(_dbContext); DuraformDesigns = new DuraformDesignRepo(_dbContext); DuraformWrapTypes = new DuraformWrapTypeRepo(_dbContext); DuraformWrapColors = new DuraformWrapColorRepo(_dbContext); DuraformEdgeProfiles = new DuraformEdgeProfileRepo(_dbContext); DuraformArches = new DuraformArchRepo(_dbContext); PantryDoorChairRailTypes = new PantryDoorChairRailTypeRepo(_dbContext); DuraformDrawerTypes = new DuraformDrawerTypeRepo(_dbContext); DuraformOptionTypes = new DuraformOptionTypeRepo(_dbContext); Processes = new ProcessRepo(_dbContext); OnHoldComponents = new OnHoldComponentRepo(_dbContext); HingeHoleTypes = new HingeHoleTypeRepo(_dbContext); HingeHoleStyles = new HingeHoleStyleRepo(_dbContext); Enquiries = new EnquiryRepo(_dbContext); ApplicationFiles = new ApplicationFileRepo(_dbContext); DuraformPrices = new DuraformPriceRepo(_dbContext); DuraformMiscPrices = new DuraformMiscPriceRepo(_dbContext); Machines = new MachineRepo(_dbContext); Drivers = new DriverRepo(_dbContext); Trucks = new TruckRepo(_dbContext); DeliverySheets = new DeliverySheetRepo(_dbContext); Invoices = new InvoiceRepo(_dbContext); Reports = new ReportRepo(_dbContext); }
public HomeController(ILogger <HomeController> logger, IBookRepo bookR, IReportRepo reportR, IReviewRepo reviewR, IRequestRepo requestR) { _logger = logger; bookRepo = bookR; reportRepo = reportR; reviewRepo = reviewR; requestRepo = requestR; }
public Server_ForumHandler() { _postRepo = new PostRepo(); _commentRepo = new CommentRepo(); _postList = new List <PostModel>(); _commentList = new List <CommentModel>(); _ratingRepo = new RatingRepo(); _reportRepo = new ReportRepo(); _reportModels = new List <ReportModel>(); }
public ReviewController(ApplicationDbContext context, UserManager <AppUser> userMgr, IBookRepo bookR, IReportRepo reportR, IReviewRepo reviewR, IRequestRepo requestR) { _context = context; userManager = userMgr; bookRepo = bookR; reportRepo = reportR; reviewRepo = reviewR; requestRepo = requestR; }
public ReportController(IPositionAssignRepo positionAssignRepo, IGeographyRepo geographyRepo, IPositionRepo positionRepo, IReportRepo reportRepo, IResignRepo resignRepo, IMailRepo mailRepo, IUserRepo userRepo) { _positionAssignRepo = positionAssignRepo; _positionRepo = positionRepo; _geographyRepo = geographyRepo; _reportRepo = reportRepo; _resignRepo = resignRepo; _mailRepo = mailRepo; _userRepo = userRepo; }
public AccountController(UserManager <AppUser> userMgr, SignInManager <AppUser> signinMgr, RoleManager <IdentityRole> roleMgr, IBookRepo bookR, IReportRepo reportR, IReviewRepo reviewR, IRequestRepo requestR) { userManager = userMgr; signInManager = signinMgr; roleManager = roleMgr; bookRepo = bookR; reportRepo = reportR; reviewRepo = reviewR; requestRepo = requestR; }
public ReportService(IReportRepo repo, IVisitInteracting interacting, VisitAssertion assertion, MedicalRepVisitsHandlers visitsHandlers, MedicalRepReportHandlers reportHandlers, IUnitWork unitWork) { _repo = repo; _interacting = interacting; _assertion = assertion; _visitsHandlers = visitsHandlers; _reportHandlers = reportHandlers; _unitWork = unitWork; }
public UCMonthReport() { InitializeComponent(); _repo = Di.Container.Instance.Resolve <IReportRepo>(); viewModel = new MonthReportViewModel(); numericUpDownTotalCost.DataBindings.Add("Value", viewModel, nameof(viewModel.TotalCost)); numericUpDownTotalPrice.DataBindings.Add("Value", viewModel, nameof(viewModel.TotalPrice)); numericUpDownTotalIncoming.DataBindings.Add("Value", viewModel, nameof(viewModel.TotalIncoming)); numericUpDownTotalCost.Controls[0].Enabled = false; // Disable the arrow buttons. numericUpDownTotalPrice.Controls[0].Enabled = false; numericUpDownTotalIncoming.Controls[0].Enabled = false; }
public void TestAddReport() { //Arrange repo = new FakeReportRepo(); SeedData(); Report report = new Report() { Reporter = users[1], ReportedUserName = users[0].UserName, Reason = "Troll", Details = "Sorry, dude, it's just for the test, I promise." }; //Act repo.AddReport(report); AppUser stiles = users[1]; //Assert Assert.Single(repo.Reports); Assert.Equal("Stiles", repo.Reports.ElementAt(0).Reporter.UserName); Assert.Equal(stiles, repo.Reports.ElementAt(0).Reporter); Assert.Equal("TeenWolf", repo.Reports.ElementAt(0).ReportedUserName); }
public ReportController(IReportRepo repo) { _reportRepo = repo; }
public ReportService(IReportView reportView) { this._reportView = reportView; _db = new ReportRepo(this); }
public IndexModel(ILogger <IndexModel> logger, IReportRepo reportRepo) { _logger = logger; _reportRepo = reportRepo; }
public DashBoardController(IDashBoardRepo repo, IReportRepo reportRepo) { _repo = repo; _reportRepo = reportRepo; }
public AddReportHandler(ICacheManager cacheManager, IReportRepo reportRepo) { _cacheManager = cacheManager; _reportRepo = reportRepo; }
public OwnerViewModel(IReportRepo reportRepo, IWindowManager windowManager) { _reportRepo = reportRepo; _windowManager = windowManager; Owners = new BindableCollection <Owner>(reportRepo.GetOwners()); }