fix some issue and cover by test (#669)

This commit is contained in:
Cédric Michel authored and GitHub committed 2022-01-25 10:50:15 -05:00
1 parent 6847cdaa0c
commit 87ae6c618c
14 files changed
+268 -81

No files matched your search

@@ -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);
}
}
}
}