protected void Application_Start() { AreaRegistration.RegisterAllAreas(); // Instantiate the ConfigReader and ReservationManager IConfigReader config = new ConfigReader(); ReservationManager manager = new ReservationManager(config); // Adds a ReservationManager to the application Application.Add(Constants.RESERVATION_MANAGER_APPLICATION_KEY, manager); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); }
public void SetUp() { var configMock = new Mock<IConfigReader>(); configMock.Setup(c => c.BookingTop).Returns((decimal)1.2); configMock.Setup(c => c.MaxCapacity).Returns(100); subject = new ReservationManager(configMock.Object); }