public void VerifyCodeView_Template_Test() { var template = new VerifyCode(new SmartAppInfo { Id = ApplicationId }); var output = template.TransformText(); Assert.NotNull(output); Assert.NotEmpty(output); Assert.Contains($"@model {ApplicationId}.Backend.Models.VerifyCodeViewModel", output); }
public void VerifyCodeView_Template_NullParameter_Test() { var template = new VerifyCode(null); Assert.Throws <NullReferenceException>(() => template.TransformText()); }
private void TransformViewsAccountVerifyCode(SmartAppInfo manifest) { var template = new VerifyCode(manifest); _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText()); }