public void ChangeStateToUnconfirmed_DocumentsAreSigned_ThrowException() { var customer = new Customer(Guid.NewGuid()); customer.SignDocuments(); Assert.Throws <Exception>(() => customer.ChangeStateToUnconfirmed()); }
public void ChangeStateToConfirmed_CustomerStateIsUnconfirmed_ThrowException() { var customer = new Customer(Guid.NewGuid()); customer.ChangeStateToUnconfirmed(); Assert.Throws <InvalidOperationException>(() => customer.ChangeStateToConfirmed()); }
public void ChangeStateToUnconfirmed_DocumentsAreNotSigned_StateChangeToUnconfirmed() { var customer = new Customer(Guid.NewGuid()); customer.ChangeStateToUnconfirmed(); Assert.Equal(customer.State, CustomerState.Unconfirmed); }