Exemple #1
0
        public void CommitAllEndPoints_CommitsEndPoints()
        {
            RelationEndPointID endPointID = RelationEndPointObjectMother.CreateRelationEndPointID(DomainObjectIDs.Customer1, "Orders");
            var endPointMock = MockRepository.GenerateStrictMock <IRelationEndPoint> ();

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

            RelationEndPointManagerTestHelper.AddEndPoint(_relationEndPointManager, endPointMock);

            _relationEndPointManager.CommitAllEndPoints();

            endPointMock.VerifyAllExpectations();
        }