You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
720 B

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