protected override string GetBody() { ForgotPassword template = new ForgotPassword(this.RegisteredUser, this.Url); string body = template.TransformText(); return(body); }
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); }
public void ForgotPasswordView_Template_NullParameter_Test() { var template = new ForgotPassword(null); Assert.Throws <NullReferenceException>(() => template.TransformText()); }
private void TransformViewsAccountForgotPassword(SmartAppInfo manifest) { var template = new ForgotPassword(manifest); _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText()); }