Example #1
0
        public void CreateAddCommand()
        {
            var fakeResult = MockRepository.GenerateStub <IDataManagementCommand> ();

            _loadStateMock.Expect(mock => mock.CreateAddCommand(_endPoint, _order1)).Return(fakeResult);
            _loadStateMock.Replay();

            var result = _endPoint.CreateAddCommand(_order1);

            _loadStateMock.VerifyAllExpectations();
            Assert.That(result, Is.SameAs(fakeResult));
        }