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