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