Skip to content

Commit

Permalink
refactor: simplify construct method
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed Sep 12, 2021
1 parent 9f9ddaf commit b23c88a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ public class WarMaterialAndSpecialEquipmentAssignmentFormatCreatedDomainEvent :
{
public WarMaterialAndSpecialEquipmentAssignmentFormatCreatedDomainEvent(IEnumerable<string> weaponCodes,
IDictionary<string, int> ammunition, IDictionary<string, int> equipments,
IDictionary<string, int> explosives, string troopId, string eventId = null,
string occurredOn = null) : base(
Guid.NewGuid().ToString(), eventId, occurredOn)
IDictionary<string, int> explosives, string troopId) : base(Guid.NewGuid().ToString(),
Guid.NewGuid().ToString(), DateTime.Now.ToString("d"))
{
WeaponCodes = weaponCodes;
Ammunition = ammunition;
Expand Down

0 comments on commit b23c88a

Please sign in to comment.