AccountManagement.Domain.Events.Implementation.UserRegisteredAccountEvent.UserRegisteredAccountEvent C# (CSharp) Method

UserRegisteredAccountEvent() public method

The constructor should guarantee that the event is correctly created. Once again we are saved from doing work here by using value objects for Email and Password The base class will ensure that the GUID is not empty.
public UserRegisteredAccountEvent ( System.Guid accountId, Email email, AccountManagement.Domain.Shared.Password password ) : System
accountId System.Guid
email Email
password AccountManagement.Domain.Shared.Password
return System
        public UserRegisteredAccountEvent(Guid accountId, Email email, Password password) : base(accountId)
        {
            Contract.Requires(email != null);
            Contract.Requires(password != null);

            Email = email;
            Password = password;
        }

Same methods

UserRegisteredAccountEvent::UserRegisteredAccountEvent ( ) : System
UserRegisteredAccountEvent