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

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

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

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