Adding update endpoint for location, player, spawnable, and user
This commit is contained in:
@@ -37,4 +37,16 @@ public class LocationControllerTests
|
||||
|
||||
Assert.IsType<NotFoundObjectResult>(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Update_NotFound()
|
||||
{
|
||||
var svc = new Mock<LocationService>(config);
|
||||
svc.Setup(l => l.GetByIdAsync("id")).ReturnsAsync((Location?)null);
|
||||
var controller = new LocationController(svc.Object, new Mock<PlayerService>(config).Object);
|
||||
|
||||
var result = await controller.Update("id", new UpdateLocationRequest());
|
||||
|
||||
Assert.IsType<NotFoundObjectResult>(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user