from simple_es.identifier.identifies import Identifies


class DomainEvent():
    """
    Base class for all domain driven events
    """
    identifier = None

    def __init__(self, identifier=None):
        if not isinstance(identifier, Identifies):
            raise TypeError('Event identifier must be an instance of the Identifies class', identifier)

        self.identifier = identifier

from simple_es.identifier.identifies import Identifies


class DomainEvent():
    """
    Base class for all domain driven events
    """
    identifier = None
    _recorded = False

    def __init__(self, identifier=None):
        if not isinstance(identifier, Identifies):
            raise TypeError('Event identifier must be an instance of the Identifies class', identifier)

        self.identifier = identifier

Add a _recorded bool to events
Add a _recorded bool to events

  from simple_es.identifier.identifies import Identifies
  
  
  class DomainEvent():
      """
      Base class for all domain driven events
      """
      identifier = None
+     _recorded = False
  
      def __init__(self, identifier=None):
          if not isinstance(identifier, Identifies):
              raise TypeError('Event identifier must be an instance of the Identifies class', identifier)
  
          self.identifier = identifier
  
Add a _recorded bool to events
## Code Before:
from simple_es.identifier.identifies import Identifies


class DomainEvent():
    """
    Base class for all domain driven events
    """
    identifier = None

    def __init__(self, identifier=None):
        if not isinstance(identifier, Identifies):
            raise TypeError('Event identifier must be an instance of the Identifies class', identifier)

        self.identifier = identifier

## Instruction:
Add a _recorded bool to events
## Code After:
from simple_es.identifier.identifies import Identifies


class DomainEvent():
    """
    Base class for all domain driven events
    """
    identifier = None
    _recorded = False

    def __init__(self, identifier=None):
        if not isinstance(identifier, Identifies):
            raise TypeError('Event identifier must be an instance of the Identifies class', identifier)

        self.identifier = identifier
