コード例 #1
0
        public UpdateDentistValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.FirstName).NotEmpty().MinimumLength(3);
            RuleFor(x => x.LastName).NotEmpty().MinimumLength(3);
        }
コード例 #2
0
        public CreateJawValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.JawName)
            .NotEmpty()
            .WithMessage("JawName is required parameter!");
        }
コード例 #3
0
        public UpdateContactValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.Address).NotEmpty();
            RuleFor(x => x.Email).NotEmpty();
            RuleFor(x => x.Phone).NotEmpty();
        }
コード例 #4
0
        public UpdateServiceTypeValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.ServiceDescription).NotEmpty().MinimumLength(3);
            RuleFor(x => x.ServiceName).NotEmpty().MinimumLength(3);
            RuleFor(x => x.ServicePrice).NotEmpty();
        }
コード例 #5
0
        public CreateTeethValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.ToothNumber)
            .NotEmpty()
            .WithMessage("ToothNumber is required parameter!");
        }
コード例 #6
0
        public CreateRoleValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.RoleName)
            .NotEmpty()
            .WithMessage("RoleName is required parameter!")
            .Must(n => !_context.Roles.Any(x => x.RoleName == n))
            .WithMessage(p => $"RoleName with same name already exists!");
        }
コード例 #7
0
        public UpdateAppointmentValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.FirstNameLastName).NotEmpty().MinimumLength(3);
            RuleFor(x => x.Email).NotEmpty().MinimumLength(3);
            RuleFor(x => x.Phone).NotEmpty();
            RuleFor(x => x.Date).NotEmpty();
            RuleFor(x => x.Time).NotEmpty();
        }
コード例 #8
0
        public CreateUserValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.FirstName).NotEmpty().MinimumLength(3);
            RuleFor(x => x.LastName).NotEmpty().MinimumLength(3);
            RuleFor(x => x.Email).NotEmpty();
            RuleFor(x => x.Phone).NotEmpty();
            RuleFor(x => x.Password).NotEmpty();
        }
コード例 #9
0
        public CreateEKartonValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.Price)
            .NotEmpty()
            .WithMessage("Price is required parameter!");
            RuleFor(x => x.Date)
            .NotEmpty()
            .WithMessage("Date is required parameter!");
        }
コード例 #10
0
        public CreateDentistValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.FirstName)
            .NotEmpty()
            .WithMessage("FirstName is required parameter!");
            RuleFor(x => x.LastName)
            .NotEmpty()
            .WithMessage("LastName is required parameter!");
        }
コード例 #11
0
 public ToothController(DentaCareContext context,
                        IMapper mapper,
                        CreateTeethValidator validator,
                        IApplicationActor actor,
                        UseCaseExecutor executor)
 {
     _context   = context;
     _mapper    = mapper;
     _validator = validator;
     _actor     = actor;
     _executor  = executor;
 }
コード例 #12
0
        public CreateServiceTypeValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.ServiceDescription)
            .NotEmpty()
            .WithMessage("ServiceDescription is required parameter!");
            RuleFor(x => x.ServiceName)
            .NotEmpty()
            .WithMessage("ServiceName is required parameter!");
            RuleFor(x => x.ServicePrice)
            .NotEmpty()
            .WithMessage("ServicePrice is required parameter!");
        }
コード例 #13
0
        public CreateContactValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.Address)
            .NotEmpty()
            .WithMessage("Address is required parameter!");
            RuleFor(x => x.Fax)
            .NotEmpty()
            .WithMessage("Fax is required parameter!");
            RuleFor(x => x.Email)
            .NotEmpty()
            .WithMessage("Email is required parameter!");
            RuleFor(x => x.Phone)
            .NotEmpty()
            .WithMessage("Phone is required parameter!");
        }
コード例 #14
0
        public CreateAppointmentValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.FirstNameLastName)
            .NotEmpty()
            .WithMessage("FirstNameLastName is required parameter!");
            RuleFor(x => x.Email)
            .NotEmpty()
            .WithMessage("Email is required parameter!");
            RuleFor(x => x.Date)
            .NotEmpty()
            .WithMessage("Date is required parameter!");
            RuleFor(x => x.Time)
            .NotEmpty()
            .WithMessage("Time is required parameter!");
            RuleFor(x => x.Phone)
            .NotEmpty()
            .WithMessage("Phone is required parameter!");
        }
コード例 #15
0
 public EfCreateDentistCommand(DentaCareContext context, CreateDentistValidator validator)
 {
     this._context   = context;
     this._validator = validator;
 }
コード例 #16
0
 public EfCreateAppointmentCommand(DentaCareContext context, IMapper mapper, CreateAppointmentValidator validator)
 {
     this._context   = context;
     this._mapper    = mapper;
     this._validator = validator;
 }
コード例 #17
0
 public DatabaseUseCaseLogger(DentaCareContext context) => _context = context;
コード例 #18
0
 public EfGetAppointmentQuery(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #19
0
 public EfCreateJawJawSideToothCommand(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #20
0
 public EfDeleteEKartonCommand(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #21
0
 public EfCreateJawSideCommand(DentaCareContext context, CreateJawSideValidator validator)
 {
     this._context   = context;
     this._validator = validator;
 }
コード例 #22
0
 public EfUpdateRoleCommand(DentaCareContext context, UpdateRoleValidator validator)
 {
     this._context   = context;
     this._validator = validator;
 }
コード例 #23
0
 public EfGetContactQuery(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #24
0
 public EfUpdateServiceTypeCommand(DentaCareContext context, UpdateServiceTypeValidator validator)
 {
     this._context   = context;
     this._validator = validator;
 }
コード例 #25
0
 public EfGetJawSideQuery(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #26
0
 public EfDeleteTeethCommand(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #27
0
 public EfDeleteJawSideCommand(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #28
0
 public EfGetRolesQuery(DentaCareContext context)
 {
     this._context = context;
 }
コード例 #29
0
        public UpdateJawSideValidator(DentaCareContext context)
        {
            this._context = context;

            RuleFor(x => x.JawSideName).NotEmpty().MinimumLength(4);
        }
コード例 #30
0
 public EfCreateEKartonCommand(DentaCareContext context, CreateEKartonValidator validator)
 {
     this._context   = context;
     this._validator = validator;
 }