public void Should_Be_Restorable_From_StateObject() { var state = (CustomerState)customer.GetState(); var restored = new Customer(state); AssertEx.PropertyValuesAreEquals(restored, customer); }
public void Setup() { customerId = Guid.NewGuid(); customerName = "Customer One"; customer = new Customer(customerId, customerName); }