feat(mypage): /mypage/get_special_crystal_info (empty — no offers)

This commit is contained in:
gamer147
2026-06-12 23:12:49 -04:00
parent 43e4c06a2c
commit e2f5786b60
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Net;
using System.Text;
using NUnit.Framework;
using SVSim.UnitTests.Infrastructure;
namespace SVSim.UnitTests.Controllers;
public class MyPageControllerSpecialCrystalInfoTests
{
[Test]
public async Task GetSpecialCrystalInfo_returns_empty()
{
using var factory = new SVSimTestFactory();
long viewerId = await factory.SeedViewerAsync(tutorialState: 0);
using var client = factory.CreateAuthenticatedClient(viewerId);
var requestJson = """{"viewer_id":"0","steam_id":0,"steam_session_ticket":""}""";
var response = await client.PostAsync("/mypage/get_special_crystal_info",
new StringContent(requestJson, Encoding.UTF8, "application/json"));
Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.OK));
}
}