Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void SendCodeView_Template_NullParameter_Test()
        {
            var template = new SendCode(null);

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

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