Exemplo n.º 1
0
        public void RollbackAllEndPoints_RollsbackEndPoints()
        {
            RelationEndPointID endPointID = RelationEndPointObjectMother.CreateRelationEndPointID(DomainObjectIDs.Customer1, "Orders");
            var endPointMock = MockRepository.GenerateStrictMock <IRelationEndPoint> ();

            endPointMock.Stub(stub => stub.ID).Return(endPointID);
            endPointMock.Expect(mock => mock.Rollback());
            endPointMock.Replay();

            RelationEndPointManagerTestHelper.AddEndPoint(_relationEndPointManager, endPointMock);

            _relationEndPointManager.RollbackAllEndPoints();

            endPointMock.VerifyAllExpectations();
        }