public void SetUp() { _customerReview = Substitute.For <ICustomerReview>(); // Mock the ICustomerReview _roomFinder = Substitute.For <IRoomFinder>(); // Mock the IRoomFinder _logger = Substitute.For <ILogger>(); // we need logger because WebAPI need this logger to log the activity // Fill the dummy Review list _lstReviews.Add(new CustomerReview { ReviewId = 1, Rating = 4, SupplierId = 1, Title = "Romantic", CustomerRemarks = "Very Romantic place", UniqueLabels = "Romantic" }); _controller = new RoomsController(_roomFinder, _customerReview, _logger) // WebAPI controller { Request = new HttpRequestMessage() { Properties = { { HttpPropertyKeys.HttpConfigurationKey, new HttpConfiguration() } } } }; }
public RegularController(IRoomFinder finder, ICalendarFileBuilder calBuilder) { this._finder = finder; this._calBuilder = calBuilder; }
public ShortestPathFinder(IMapRepository mapRep, IRoomFinder innerFinder) { this.mapRep = mapRep; sfinder = new DijikstraPathFinder(mapRep.Map); this.innerFinder = innerFinder; }
public RoomsController(IRoomFinder roomFinder, ICustomerReview customerReview, ILogger logger) : base(logger) { _roomFinder = roomFinder; _customerReview = customerReview; }