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