Exemplo n.º 1
0
        public void ValidateMandatory_WithItems_Succeeds()
        {
            var domainObjectCollectionData = new DomainObjectCollectionData(new[] { DomainObjectMother.CreateFakeObject <Order> () });

            _loadStateMock
            .Stub(stub => stub.GetData(_endPoint))
            .Return(new ReadOnlyCollectionDataDecorator(domainObjectCollectionData));
            _loadStateMock.Replay();

            _endPoint.ValidateMandatory();
        }