Пример #1
0
        public void ViewModel_InstitutionalAgreements_ConfigurationForms_InstitutionalAgreementStatusValueForm_ShouldBeConstructible()
        {
            var model = new InstitutionalAgreementStatusValueForm
            {
                Id = 1,
            };

            model.ShouldNotBeNull();
        }
        public void ViewModel_InstitutionalAgreements_ConfigurationForms_InstitutionalAgreementStatusValueForm_ShouldBeConstructible()
        {
            var model = new InstitutionalAgreementStatusValueForm
            {
                Id = 1,
            };

            model.ShouldNotBeNull();
        }
 public virtual PartialViewResult NewAgreementStatus(Guid configurationId)
 {
     var configurationRevisionId = 0;
     var configuration = _queryProcessor.Execute(
         new GetInstitutionalAgreementConfigurationByGuidQuery(configurationId));
     if (configuration != null)
         configurationRevisionId = configuration.RevisionId;
     var model = new InstitutionalAgreementStatusValueForm
     {
         ConfigurationId = configurationRevisionId,
     };
     return PartialView(GetEditorTemplateViewName(Area, Name,
         Views.EditorTemplates.InstitutionalAgreementStatusValueForm), model);
 }