public void CreateInsertCommand() { var fakeResult = MockRepository.GenerateStub <IDataManagementCommand> (); _loadStateMock.Expect(mock => mock.CreateInsertCommand(_endPoint, _order1, 0)).Return(fakeResult); _loadStateMock.Replay(); var result = _endPoint.CreateInsertCommand(_order1, 0); _loadStateMock.VerifyAllExpectations(); Assert.That(result, Is.SameAs(fakeResult)); }