Beispiel #1
0
 public void Setup()
 {
     Order = new Order
     {
         Positions = Positions = new PositionList {new Position{Id = 2, Price = 100m} },
         Buyer = Buyer = new Buyer { Id = 1, Name = "BuyerName-A" },
         Seller = Seller = new Seller { Id = 1, Name = "SellerName-B" }
     };
 }
        public virtual void Setup()
        {
            Order = new Order
                        {
                            Positions = Positions,
                            Buyer = Buyer = new Buyer{Id = 1, Name = "BuyerName-A"},
                            Seller = Seller = new Seller { Id = 1, Name = "SellerName-B" }
                        };

            Positions = new PositionList
                            {
                                new Position {Id = 1, Price = 22.0m},
                                new Position {Id = 2, Price = 47.3m},
                                new Position {Id = 3, Price = 55.3m}
                            };
        }