github
1482 of 4260 new or added lines in 188 files covered. (34.79%)
3216 existing lines in 139 files now uncovered.2346 of 8486 relevant lines covered (27.65%)
3.09 hits per line
1 |
using System.Runtime.Serialization;
|
|
2 |
|
|
3 |
namespace PersistEntities;
|
|
4 |
|
|
5 |
public class TopicPe |
|
6 |
{ |
|
UNCOV
7
|
public TopicPe(string name) |
× |
UNCOV
8
|
{ |
× |
UNCOV
9
|
Id = Guid.NewGuid(); |
× |
UNCOV
10
|
Name = name; |
× |
UNCOV
11
|
} |
× |
12 |
|
|
13 |
/// <summary>
|
|
14 |
/// Constructor for Automapper. DO NOT USE.
|
|
15 |
/// </summary>
|
|
UNCOV
16
|
protected TopicPe()
|
× |
UNCOV
17
|
{ |
× |
UNCOV
18
|
Id = Guid.Empty; |
× |
UNCOV
19
|
Name = string.Empty;
|
× |
UNCOV
20
|
} |
× |
21 |
|
|
22 |
[DataMember] |
|
23 |
public string Name { get; set; } |
|
24 |
[IgnoreDataMember] |
|
25 |
public Guid Id { get; set; }
|
|
26 |
|
|
27 |
[OnDeserializing] |
|
28 |
private void OnDeserializing(StreamingContext context) |
|
UNCOV
29
|
{ |
× |
UNCOV
30
|
Id = Guid.NewGuid(); |
× |
UNCOV
31
|
} |
× |
32 |
} |