public void SetUp()
        {
            _service = new Mock <IGetNotificationTemplateService>();
            _sut     = new GetNotificationTemplateQueryHandler(_service.Object);

            _query = new GetNotificationTemplateQuery("templateId");
        }
예제 #2
0
        public void LearningPathIdIsValid_ShouldNotHaveError()
        {
            _query = new GetNotificationTemplateQuery("templateId");

            _sut.ShouldNotHaveValidationErrorFor(x => x.TemplateId, _query);
        }
예제 #3
0
        public void LearningPathIdIsNullOrEmpty_ShouldHaveError(string templateId)
        {
            _query = new GetNotificationTemplateQuery(templateId);

            _sut.ShouldHaveValidationErrorFor(x => x.TemplateId, _query);
        }