title: Rhino Mocks: Mocked method returns null
body: <p>I'm trying to mock a data repository object but after setting an expectation on my MockRepository, it returns null every time. My code is as follows:
  <code></p>
  
  <pre><code>    [Test]
      public void GetById_NotNull()
      {
          Person expectedPerson = new Person() { Id = 1, Name="Jon"};
  
          MockRepository MockRepository = new MockRepository();
          var FakePersonRepository = MockRepository.StrictMock&lt;IRepository&lt;Person&gt;&gt;();
  
          FakePersonRepository.Expect(action =&gt; action.Get(1)).IgnoreArguments().Return(expectedPerson);
  
          PersonService PersonService = new PersonService(FakePersonRepository);
          Person returnedPerson = PersonService.Get(1);
  
          Assert.IsNotNull(returnedPerson);
      }
  
      //and inside my person service
      public class PersonService
      {
           private IRepository&lt;Person&gt; _PersonRepository;
           public PersonService(IRepository&lt;Person&gt; PersonRepository)
           {
             this._PersonRepository = PersonRepository;
           }
  
           public Person Get(int Id)
           {
               Person p = _PersonRepository.Get(Id);
               return p;
            }
      }
  </code></pre>
  
  <p></code>
  The assertion at the bottom of the Test fails and returned person is always null. I know I must be doing something wrong with my mock....ideas?</p>