Пример #1
0
        public void AddDriveThru_NewDriveThru_ReturnsNewAddedValue()
        {
            // Arrange
            Status currentStatus = new Status()
            {
                StatusId = 1, RestaurantId = 1, DriveThru = 1, InStore = 0
            };

            // Act
            _sut.AddDriveThru(currentStatus);

            // Assert
            Assert.Equal(2, currentStatus.DriveThru);
        }
Пример #2
0
 public IActionResult EnterDriveThru(int restaurantId)
 {
     return(Ok(_availabilityService.AddDriveThru(_statusRepository.GetRestaurantStatusById(restaurantId))));
 }