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);
        }
Example #2
0
 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();
        }
Example #4
0
 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;
 }
Example #8
0
 public EmailController(IMainRepository repository)
 {
     this.repository = repository;
 }
 public SimpleMemberService(IMainRepository repository)
 {
     this.repository = repository;
 }
Example #10
0
 public ValuesController(IMainRepository repo)
 {
     _repo = repo;
 }
Example #11
0
 public PhoneBookModel(IMainRepository repository)
 {
     _repository    = repository;
     _phoneBookRows = UpdateRowPhoneBook();
 }
Example #12
0
 public TicketsController(IMainRepository repo)
 {
     repository = repo;
 }
 public StationsController(IMainRepository repository)
 {
     _Repository = repository;
 }
Example #14
0
 public MainPresenter(IMainView view, 
     IMainRepository repository)
 {
     _view = view;
     _repository = repository;
 }
 public HobbiesController(IMainRepository ctx)
 {
     context = ctx;
 }
Example #16
0
 public void SetRepository(IMainRepository repository)
 {
     this.repository = repository;
 }
Example #17
0
 public Seed(IMainRepository repo, DataContext context, IConfiguration config)
 {
     _context = context;
     _repo    = repo;
     _config  = config;
 }
Example #18
0
 public CasePartyController(IMainRepository repository)
 {
     this.repository = repository;
 }
 public SymbolsController(IMainRepository mainRepository, IUserResolver userResolver)
 {
     _mainRepository = mainRepository;
     _userResolver   = userResolver;
 }
 public AuctionRunner(IMainRepository repository)
     : this(repository, TimeSpan.FromSeconds(5))
 {
 }
Example #21
0
 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();
 }
Example #22
0
 public BaseService()
 {
     _unitOfWork   = new UnitOfWork();
     _repositories = _unitOfWork.Repository <TEntity>();
 }
 //inject
 public HomeController(IMainRepository mainRepository)
 {
     _mainRepository = mainRepository;
 }
Example #24
0
 public InternController(IMainRepository repository)
 {
     this.repository = repository;
 }
Example #25
0
 public GetSaleListQueryHandler(IMainRepository repository, IMapper mapper)
 {
     this.repository = repository;
     this.mapper     = mapper;
 }
 public PeopleSaysViewComponent(IMainRepository mainRepository)
 {
     _mainRepository = mainRepository;
 }
Example #27
0
 public Auctioneer(IMainRepository repository)
 {
     this.repository = repository;
 }
Example #28
0
 public HolidayModel(IMainRepository repository)
 {
     _repository   = repository;
     _specialDates = UpdateSpecialDateCollection(_repository);
 }
Example #29
0
 public CinemaController(IMainRepository repo)
 {
     repository = repo;
 }
Example #30
0
 public Auctioneer(IMainRepository repository)
 {
     this.repository = repository;
 }
Example #31
0
 public IntakesController(IMainRepository mainRepository)
 {
     repository = mainRepository;
 }
Example #32
0
 public MovieController(IMainRepository repo)
 {
     repository = repo;
 }
Example #33
0
 public TransactionService(IMainRepository repo)
 {
     this.Repo = repo;
 }
Example #34
0
 public HomeAdminController()
 {
     DaPhongThuy = new Repository();
 }
Example #35
0
 public AuctionService(IMainRepository mainRepository, IMemberService memberService)
 {
     this.mainRepository = mainRepository;
     this.memberService  = memberService;
 }
 public ScheduleController(IScheduleRepository scheduleRepository, IMainRepository mainRepository)
 {
     this.scheduleRepository = scheduleRepository;
     this.mainRepository     = mainRepository;
 }
Example #37
0
 public ManageProductController()
 {
     DaPhongThuy = new Repository();
 }
Example #38
0
 public MainController(IMainRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
 public AuctionService(IMainRepository mainRepository, IMemberService memberService)
 {
     this.mainRepository = mainRepository;
     this.memberService = memberService;
 }