Ejemplo n.º 1
0
        // [InlineData(AuthenticateEndpoints.Refresh)]
        // [InlineData(AuthenticateEndpoints.Validate)]
        // [InlineData(AuthenticateEndpoints.Invalidate)]
        // [InlineData(AuthenticateEndpoints.Signout)]
        public void Test3(AuthenticateEndpoints authenticateEndpoints)
        {
            var expect = "authenticate";
            var actual = authenticateEndpoints.GetValue();

            Assert.Equal(expect, actual);
        }
Ejemplo n.º 2
0
 public static async Task <HttpResponse> Post(AuthenticateEndpoints endpoints, string json)
 {
     return(await Post($"https://authserver.mojang.com/{endpoints.GetValue()}", json));
 }