Beispiel #1
0
        protected override string GetBody()
        {
            ForgotPassword template = new ForgotPassword(this.RegisteredUser, this.Url);
            string         body     = template.TransformText();

            return(body);
        }
Beispiel #2
0
        public void ForgotPasswordView_Template_Test()
        {
            var template = new ForgotPassword(new SmartAppInfo {
                Id = ApplicationId
            });
            var output = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
            Assert.Contains($"@model {ApplicationId}.Backend.Models.ForgotPasswordViewModel", output);
        }
Beispiel #3
0
        public void ForgotPasswordView_Template_NullParameter_Test()
        {
            var template = new ForgotPassword(null);

            Assert.Throws <NullReferenceException>(() => template.TransformText());
        }
Beispiel #4
0
        private void TransformViewsAccountForgotPassword(SmartAppInfo manifest)
        {
            var template = new ForgotPassword(manifest);

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