Beispiel #1
0
        public void Serializable()
        {
            var source = new TestDomainObjectCollectionDecorator(new DomainObjectCollectionData(new[] { _order1, _order3 }));

            var result = Serializer.SerializeAndDeserialize(source);

            Assert.That(result.Count, Is.EqualTo(2));
        }
Beispiel #2
0
        public override void SetUp()
        {
            base.SetUp();

            _mockRepository  = new MockRepository();
            _wrappedDataMock = _mockRepository.StrictMock <IDomainObjectCollectionData> ();

            _decorator = new TestDomainObjectCollectionDecorator(_wrappedDataMock);

            _order1 = DomainObjectMother.CreateFakeObject <Order> ();
            _order3 = DomainObjectMother.CreateFakeObject <Order> ();
        }