about summary refs log tree commit diff
path: root/Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs
blob: f737363fe6638a208d9327b4492af52bb39075d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace LibMatrix.Tests.DataTests;

public static class WhoAmITests {
    public static void VerifyRequiredFields(this WhoAmIResponse obj, bool isAppservice = false) {
        Assert.NotNull(obj);
        Assert.NotNull(obj.UserId);
        if(!isAppservice)
            Assert.NotNull(obj.DeviceId);
    }
}