public AuctionRunner(IMainRepository repository, TimeSpan checkInterval) { this.checkInterval = checkInterval; this.timer = new Timer(this.Callback, null, Timeout.Infinite, Timeout.Infinite); this.auctioneer = new Auctioneer(repository); }
public App() { this.MainRepository = new FileSystemMainRepository("repo8"); this.AuctionRunner = new AuctionRunner(this.MainRepository); this.FillRepo(); this.AuctionRunner.Start(); }
static App() { SetupCulture(); MainRepository = new FileSystemMainRepository("file.dat"); AuctionRunner = new AuctionRunner(MainRepository); MemberService = new SimpleMemberService(MainRepository); AuctionService = new AuctionService(MainRepository, MemberService); InitTestAuctionData(); AuctionRunner.Start(); }
public string GetPriceTableClassString(IMainRepository repo, AppUser user) { if (CatalogViewModel.ChoosenProductID == this.ID || OwnerID == user?.Id) { return("bg-dark text-white"); } if (IsBought(repo, user)) { return("bg-primary text-dark"); } if (Price == 0 || FinalPrice == 0) { return("bg-success text-dark"); } if (Price < 10 || FinalPrice < 10 || Discount > 50) { return("bg-success text-dark"); } if (Price > 250 || FinalPrice > 250) { return("bg-danger text-dark"); } return(""); }
public CartController(IMainRepository mainRepository) { _mainRepository = mainRepository; }
public AuctionRunner(IMainRepository repository) : this(repository, TimeSpan.FromSeconds(5)) { }
public SimpleMemberService(IMainRepository repository) { this.repository = repository; }
public EmailController(IMainRepository repository) { this.repository = repository; }
public ValuesController(IMainRepository repo) { _repo = repo; }
public PhoneBookModel(IMainRepository repository) { _repository = repository; _phoneBookRows = UpdateRowPhoneBook(); }
public TicketsController(IMainRepository repo) { repository = repo; }
public StationsController(IMainRepository repository) { _Repository = repository; }
public MainPresenter(IMainView view, IMainRepository repository) { _view = view; _repository = repository; }
public HobbiesController(IMainRepository ctx) { context = ctx; }
public void SetRepository(IMainRepository repository) { this.repository = repository; }
public Seed(IMainRepository repo, DataContext context, IConfiguration config) { _context = context; _repo = repo; _config = config; }
public CasePartyController(IMainRepository repository) { this.repository = repository; }
public SymbolsController(IMainRepository mainRepository, IUserResolver userResolver) { _mainRepository = mainRepository; _userResolver = userResolver; }
public EditStationForm(Station stationToEdit, IEnumerable <Station> StationsToCheck, IMainRepository mainRepo) { InitializeComponent(); this.MainRepo = mainRepo; this.Stations = StationsToCheck; this.StationToEdit = stationToEdit; this.StationNameTextBox.Text = this.StationToEdit.StationName; this.MyUniqueTextBox.Text = this.StationToEdit.DistanceToPreviousStation.ToString(); }
public BaseService() { _unitOfWork = new UnitOfWork(); _repositories = _unitOfWork.Repository <TEntity>(); }
//inject public HomeController(IMainRepository mainRepository) { _mainRepository = mainRepository; }
public InternController(IMainRepository repository) { this.repository = repository; }
public GetSaleListQueryHandler(IMainRepository repository, IMapper mapper) { this.repository = repository; this.mapper = mapper; }
public PeopleSaysViewComponent(IMainRepository mainRepository) { _mainRepository = mainRepository; }
public Auctioneer(IMainRepository repository) { this.repository = repository; }
public HolidayModel(IMainRepository repository) { _repository = repository; _specialDates = UpdateSpecialDateCollection(_repository); }
public CinemaController(IMainRepository repo) { repository = repo; }
public IntakesController(IMainRepository mainRepository) { repository = mainRepository; }
public MovieController(IMainRepository repo) { repository = repo; }
public TransactionService(IMainRepository repo) { this.Repo = repo; }
public HomeAdminController() { DaPhongThuy = new Repository(); }
public AuctionService(IMainRepository mainRepository, IMemberService memberService) { this.mainRepository = mainRepository; this.memberService = memberService; }
public ScheduleController(IScheduleRepository scheduleRepository, IMainRepository mainRepository) { this.scheduleRepository = scheduleRepository; this.mainRepository = mainRepository; }
public ManageProductController() { DaPhongThuy = new Repository(); }
public MainController(IMainRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; }