public void when_finding_existing_dao_then_deserializes_blob_and_returns_instance()
        {
            var dto = new OrderSeats();
            var storage = Mock.Of<IBlobStorage>(x => x.Find(It.IsAny<string>()) == new byte[0]);
            var serializer = Mock.Of<ITextSerializer>(x => x.Deserialize(It.IsAny<TextReader>()) == dto);
            var dao = new OrderDao(() => new ConferenceRegistrationDbContext("OrderDaoFixture"), storage, serializer);

            var result = dao.FindOrderSeats(Guid.NewGuid());

            Assert.Same(result, dto);
        }
        public given_an_order_seat_assignments()
        {
            // Arrange
            this.orderSeats = new OrderSeats
            {
                AssignmentsId = Guid.NewGuid(),
                OrderId = Guid.NewGuid(),
                Seats =
                {
                    new OrderSeat(0, "General") 
                    { 
                        Attendee = new PersonalInfo
                        {
                            Email= "*****@*****.**",
                            FirstName = "A", 
                            LastName = "Z",
                        }
                    },
                    new OrderSeat(1, "Precon"),
                }
            };

            this.orderDao.Setup(r => r.FindOrderSeats(this.orderSeats.OrderId)).Returns(this.orderSeats);
        }