public void Setup()
 {
     var updateStorage = new InMemoryDbUpdateStorage();
     updateStorage.Add(new OrderInProgress()
     {
         OrderId = orderId.ToString(),
         Description = "fake order",
         ProductName = "fake_product",
         Price = 1,
         Quantity = 10,
         TotalAmount = 10
     });
     this.readStorage = updateStorage;
     OrderInProgressDenormilizer denormilizer = new OrderInProgressDenormilizer(updateStorage, new EmptyLogger());
     denormilizer.Consume(new OrderRejected(orderId, "fake order", "order is not valid!"));
 }
 public void Setup()
 {
     var updateStorage = new InMemoryDbUpdateStorage();
     this.readStorage = updateStorage;
     OrderInProgressDenormilizer denormilizer = new OrderInProgressDenormilizer(updateStorage, new EmptyLogger());
     denormilizer.Consume(new OrderPlaced(orderId, "fake order", "fake_product", 1, 10));
 }