Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var info = await _staticSiteInfoService.GetByNameAsync("Privacy");

            var model = new IndexViewModel {
                Content = info?.Content
            };

            return(View(model));
        }
        public async Task GetByNameAsync_WhenNameIsNullOrWhitespace_ShouldReturnNull(string value)
        {
            var result = await _staticSiteInfoService.GetByNameAsync(value);

            Assert.IsNull(result);
        }