< Summary

Information
Class: Server.Commands.UsersQuery
Assembly: Server
File(s): /home/runner/work/NGql/NGql/src/Server/Commands/UsersQuery.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
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{
 129    public string? Name { get; }
 10
 1211    public UsersQuery(string? name = null)
 12    {
 1213        Name = name;
 1214    }
 15}
 16
 17public class UserQuery : IRequest<User>
 18{
 19    public string Name { get; }
 20
 21    public UserQuery(string name) => Name = name;
 22}

Methods/Properties

get_Name()
.ctor(System.String)