github
1067 of 3351 new or added lines in 179 files covered. (31.84%)
1051 existing lines in 48 files now uncovered.3857 of 7276 relevant lines covered (53.01%)
6.15 hits per line
1 |
using System.Runtime.Serialization;
|
|
2 |
|
|
3 |
namespace PersistEntities;
|
|
4 |
|
|
5 |
public class TopicPe |
|
6 |
{ |
|
7 |
public TopicPe(string name) |
2✔ |
8 |
{ |
2✔ |
9 |
Id = Guid.NewGuid(); |
2✔ |
10 |
Name = name; |
2✔ |
11 |
} |
2✔ |
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 |
} |