Adding update endpoint for location, player, spawnable, and user

This commit is contained in:
hz
2025-06-09 10:23:43 -05:00
parent 7aa192d728
commit 44f57a1121
13 changed files with 174 additions and 0 deletions
@@ -66,4 +66,16 @@ public class SpawnableControllerTests
Assert.IsType<NotFoundObjectResult>(result);
}
[Fact]
public async Task Update_NotFound()
{
var svc = new Mock<SpawnableService>(config);
svc.Setup(s => s.GetByIdAsync("id")).ReturnsAsync((Spawnable)null);
var controller = new SpawnableController(svc.Object);
var result = await controller.Update("id", new UpdateSpawnableRequest { Name="n", SpawnRate=1, CollectAction="a" });
Assert.IsType<NotFoundObjectResult>(result);
}
}