Ejemplo n.º 1
0
        public void ViewModel_InstitutionalAgreements_ConfigurationForms_InstitutionalAgreementTypeValueForm_ShouldBeConstructible()
        {
            var model = new InstitutionalAgreementTypeValueForm
            {
                Id = 1,
            };

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

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