planetarium / mimir

A backend service that provides 9c-related utility APIs.
https://nine-chronicles.dev/
GNU Affero General Public License v3.0
6 stars 33 forks source link

Add integration Test for Mimir `Inventory` Query #546

Closed Atralupus closed 1 day ago

Atralupus commented 1 day ago

Currently, there is no unit test for inventory and we should make one.

Make InventoryTest.cs with first unit test

public class InventoryTest
{
    [Fact]
    public async Task GraphQL_Query_Inventory_Returns_CorrectValue()
    {
    }
}

Mocking IServiceProvider with mock InventoryRepository

Testing GraphQL query inventory via verifying snapshot

pybsh commented 1 day ago

Please assign this issue to me