public ActionResult MakeBidOnPlayer(int id, int teamId, decimal bid) { var bidding = new PlayerBidding(_playerRepository, _teamRepository, _biddingRespoitory); var biddingStatus = bidding.BiddingStatus(teamId, bid, id); var redirectUrl = new UrlHelper(Request.RequestContext).Action("NextStageOfBidding", new { id, teamId, bid }); return(Json(new { Url = redirectUrl, BiddingStatus = biddingStatus })); //return RedirectToAction("NextStageOfBidding", new {id, teamId, bid}); }
public void InitialBiddingStatus_AskingPriceIsTooLow_FirstOfferRejected() { var result = _bidding.BiddingStatus(teamId: 1, teamOffer: 150000, playerId: 2); Assert.AreEqual(result, PlayerBiddingStatuses.Rejected); }