Example #1
0
 public CreateRestaurantPreLogicValidationStrategy(RegisterRestaurantDto registerRestaurantDto)
 {
     _registerRestaurantDto     = registerRestaurantDto;
     _businessHourDtoValidator  = new BusinessHourDtoValidator();
     _businessHourValidator     = new BusinessHourValidator();
     _restaurantDetailValidator = new RestaurantDetailValidator();
 }
        /// <summary>
        /// Constructor for CreateRestaurantPostLogicValidationStrategy.
        /// <para>
        /// @author: Jennifer Nguyen
        /// @update: 03/20/2018
        /// </para>
        /// </summary>
        /// <param name="userAccount"></param>
        /// <param name="securityQuestions"></param>
        /// <param name="securityAnswerSalts"></param>
        /// <param name="passwordSalt"></param>
        /// <param name="claims"></param>
        /// <param name="userProfile"></param>
        /// <param name="restaurantProfile"></param>
        /// <param name="businessHours"></param>
        public CreateRestaurantPostLogicValidationStrategy(RestaurantProfile restaurantProfile, IList <BusinessHour> businessHours)
        {
            _restaurantProfile = restaurantProfile;
            _businessHours     = businessHours;

            _businessHourValidator = new BusinessHourValidator();
        }