Example #1
0
 public Alice(int numOrders, Guid actorGuid, CustomerModel personalModel)
 {
     NumOrders         = numOrders;
     ActorGuid         = actorGuid;
     Money             = 1000m;
     PersonalModel     = personalModel;
     PersonalDataBytes = Helpers.GetBytes(SerializeCustomerModel.SerializeCustomerModelToJson(personalModel));
     Ledger            = new Dictionary <Guid, List <MoneyOrder> >();
 }
Example #2
0
 public CustomerModel(ActorName name, string email, StreetAddress customerStreetStreetAddress,
                      DateTime createdDateTime, Guid id)
 {
     Name  = name;
     Email = email;
     CustomerStreetAddress = customerStreetStreetAddress;
     CreatedDateTime       = createdDateTime;
     Id = id;
     _serializeCustomerModel = new SerializeCustomerModel();
 }
Example #3
0
 public CustomerModel(ActorName name, string email, StreetAddress customerStreetStreetAddress,
     DateTime createdDateTime, Guid id)
 {
     Name = name;
     Email = email;
     CustomerStreetAddress = customerStreetStreetAddress;
     CreatedDateTime = createdDateTime;
     Id = id;
     _serializeCustomerModel = new SerializeCustomerModel();
 }