Files
raven-test-integration/User/UserInactive.cs
2020-03-18 15:45:40 +00:00

30 lines
662 B
C#

using Xunit;
using Newtonsoft.Json.Linq;
namespace raven_integration
{
public class UserInactive
{
/// <summary>
/// Inactive user should not be able to login
/// </summary>
[Fact]
public async void InactiveUserCantLogin()
{
dynamic DCreds = new JObject();
DCreds.password = DCreds.login = "TEST_INACTIVE";
ApiResponse a = await Util.PostAsync("Auth", null, DCreds.ToString());
Util.ValidateErrorCodeResponse(a,2003, 401);
}
//==================================================
}//eoc
}//eons