github
358 of 1511 new or added lines in 101 files covered. (23.69%)
445 existing lines in 19 files now uncovered.2690 of 4631 relevant lines covered (58.09%)
6.57 hits per line
1 |
namespace BusinessLogic.Commands;
|
|
2 |
|
|
3 |
public class BatchCommand : IBatchCommand |
|
4 |
{ |
|
NEW
|
public string Name => nameof(BatchCommand); |
× |
6 |
internal IEnumerable<IUndoCommand> Commands { get; } |
|
7 |
|
|
UNCOV
8
|
public BatchCommand(IEnumerable<IUndoCommand> commands)
|
× |
UNCOV
9
|
{ |
× |
UNCOV
10
|
Commands = commands; |
× |
UNCOV
11
|
} |
× |
12 |
|
|
13 |
public void Execute() |
|
UNCOV
14
|
{ |
× |
UNCOV
15
|
foreach (var command in Commands) |
× |
UNCOV
16
|
{ |
× |
UNCOV
17
|
command.Execute(); |
× |
UNCOV
18
|
} |
× |
UNCOV
19
|
} |
× |
20 |
|
|
21 |
public void Undo() |
|
UNCOV
22
|
{ |
× |
UNCOV
23
|
foreach (var command in Commands.Reverse()) |
× |
UNCOV
24
|
{ |
× |
UNCOV
25
|
command.Undo(); |
× |
UNCOV
26
|
} |
× |
UNCOV
27
|
} |
× |
28 |
|
|
29 |
public void Redo() |
|
UNCOV
30
|
{ |
× |
UNCOV
31
|
foreach (var command in Commands) |
× |
UNCOV
32
|
{ |
× |
UNCOV
33
|
command.Redo(); |
× |
UNCOV
34
|
} |
× |
UNCOV
35
|
} |
× |
36 |
} |