Пример #1
0
 public PostPriceService(
     IStockWalletDbContext context,
     PriceValidator entityValidator,
     PostPriceSpecificationsValidator domainValidator
     ) : base(entityValidator, domainValidator)
 {
     Context = context;
 }
Пример #2
0
        public void Setup()
        {
            // model
            _carEquipment      = new CarEquipment();
            _carProfile        = new CarProfile();
            _dayThatIsRented   = new DayThatIsRented();
            _possibleToRentDay = new PossibleToRentDay();
            _message           = new Message();
            _messagesWithUsers = new MessagesWithUsers();
            _user = new User();

            //security
            _carAgeValidator        = new CarAgeValidator();
            _emailValidator         = new EmailValidator();
            _licensePlateValidator  = new LicensePlateValidator();
            _nameValidator          = new NameValidator();
            _passwordMatchValidator = new PasswordMatchValidator();
            _passwordValidator      = new PasswordValidator();
            _priceValidator         = new PriceValidator();
        }
Пример #3
0
 public void BeforeEach()
 {
     _validator = new PriceValidator();
 }