Ejemplo n.º 1
0
        public void ManageChangePassword_Template_Test()
        {
            var template = new ManageChangePassword(new SmartAppInfo {
                Id = ApplicationId
            });
            var output = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
            Assert.Contains($"@model {ApplicationId}.Backend.Models.ChangePasswordViewModel", output);
        }
Ejemplo n.º 2
0
        public void ManageChangePassword_Template_NullParameter_Test()
        {
            var template = new ManageChangePassword(null);

            Assert.Throws <NullReferenceException>(() => template.TransformText());
        }
Ejemplo n.º 3
0
        private void TransformViewsManageManageChangePassword(SmartAppInfo manifest)
        {
            var template = new ManageChangePassword(manifest);

            _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText());
        }