< Summary

Information
Class: Server.Commands.UserQuery
Assembly: Server
File(s): /home/runner/work/NGql/NGql/src/Server/Commands/UsersQuery.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/NGql/NGql/src/Server/Commands/UsersQuery.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using MediatR;
 3using Server.Data.Entities;
 4
 5namespace Server.Commands;
 6
 7public class UsersQuery : IRequest<IEnumerable<User>>
 8{
 9    public string? Name { get; }
 10
 11    public UsersQuery(string? name = null)
 12    {
 13        Name = name;
 14    }
 15}
 16
 17public class UserQuery : IRequest<User>
 18{
 3019    public string Name { get; }
 20
 6021    public UserQuery(string name) => Name = name;
 22}

Methods/Properties

get_Name()
.ctor(System.String)