using System.Threading.Tasks; using VberAdmin.Models.TokenAuth; using VberAdmin.Web.Controllers; using Shouldly; using Xunit; namespace VberAdmin.Web.Tests.Controllers; public class HomeController_Tests : VberAdminWebTestBase { [Fact] public async Task Index_Test() { await AuthenticateAsync(null, new AuthenticateModel { UsernameOrEmailOrPhone = "admin", Password = "123qwe" }); //Act var response = await GetResponseAsStringAsync( GetUrl(nameof(HomeController.Index)) ); //Assert response.ShouldNotBeNullOrEmpty(); } }