about summary refs log tree commit diff
path: root/Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs
blob: e1da3d52ebbc6c011f47a4a235693877fe9d956b (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);
    }
}