Exemplo n.º 1
0
 public BiddingController(IBiddingService biddingService, IHubContext <BiddingHub, IBiddingClient> biddingHubContext, UserManager <LemonUser> userManager)
 {
     _biddingService    = biddingService;
     _biddingHubContext = biddingHubContext;
     _userManager       = userManager;
     // if (_context.Bids.Count() == 0)
     // {
     //     // Create a new TodoItem if collection is empty,
     //     _context.Bids.Add(new Bid { BidAmount = 100 });
     //     _context.SaveChanges();
     // }
 }
Exemplo n.º 2
0
 public BidController(IBiddingService biddingService, IHubContext <BidHub> bidHub)
 {
     this.biddingService = biddingService;
     this.bidHub         = bidHub;
 }
 public void SetUp()
 {
     _service    = new BiddingServiceFake();
     _controller = new PropertiesController(_service);
 }
Exemplo n.º 4
0
 public BiddingHub(IBiddingService biddingService, UserManager <LemonUser> userManager)
 {
     _biddingService = biddingService;
     _userManager    = userManager;
 }
Exemplo n.º 5
0
 public PropertiesController(IBiddingService biddingService)
 {
     _biddingService = biddingService;
 }
 public BiddingController(IBiddingService service, IAutoMapper mapper)
 {
     _mapper  = mapper;
     _service = service;
 }