fix some issue and cover by test (#669)

This commit is contained in:
Cédric Michel
2022-01-25 16:50:15 +01:00
committed by GitHub
parent 6847cdaa0c
commit 87ae6c618c
14 changed files with 268 additions and 81 deletions

View File

@@ -1,18 +1,17 @@
using Microsoft.AspNetCore.Mvc.Testing;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.ApplicationCore.Constants;
using Microsoft.eShopWeb.PublicApi.AuthEndpoints;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
namespace PublicApiIntegrationTests.AuthEndpoints
{
[TestClass]
public class AuthenticateEndpoint
{
{
[TestMethod]
[DataRow("demouser@microsoft.com", AuthorizationConstants.DEFAULT_PASSWORD, true)]
[DataRow("demouser@microsoft.com", "badpassword", false)]
@@ -33,4 +32,4 @@ namespace PublicApiIntegrationTests.AuthEndpoints
Assert.AreEqual(expectedResult, model.Result);
}
}
}
}