public void Setup() { UserName = "******"; Password = "******"; MessageA = new RegistrationRequestMessage(UserName + "1", Password); MessageB = new RegistrationRequestMessage(UserName, Password); }
public bool Equals(RegistrationRequestMessage other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.PersonUserName, PersonUserName) && Equals(other.PersonPassword, PersonPassword); }
public void Setup() { PersonUserName = "******"; PersonPassword = "******"; MessageSystem = new MessagingBus(); NotificationService = new TestingNotificationSystem(MessageSystem); ThePersonRegistrationViewModel = new PersonRegistrationViewModel(MessageSystem); TheRegistrationRequestAggregator = new AggregatorOfType<RegistrationRequestMessage>(MessageSystem); Context(); Because(); ActualUserRegistrationRequestMessage = TheRegistrationRequestAggregator.ReceivedMessages.First(); }
void Context() { ExpectedUserRegistrationRequestMessage = new RegistrationRequestMessage(PersonUserName, PersonPassword); }