Exemple #1
0
        public void rejection_reason_is_longer_than_1000_characters()
        {
            var request = new RejectAppointment
            {
                Reason = new string('x', 1001)
            };

            var sut = new RejectAppointmentValidator();

            sut.ShouldHaveValidationErrorFor(p => p.Reason, request);
        }
Exemple #2
0
        public void rejection_reason_is_empty()
        {
            var request = new RejectAppointment
            {
                Reason = string.Empty
            };

            var sut = new RejectAppointmentValidator();

            sut.ShouldHaveValidationErrorFor(p => p.Reason, request);
        }