passing by reference not working
<p>I have following code</p>

<pre><code>public interface IEntity
{
// Properties
    int Id { get; set; }
}

public class Container : IEntity
{
    public int Id { get; set; }
    public string Name { get; set; }
}

public class Command
{      
    public void ApplyCommand(ref IEntity entity)
    {
        Container c = new Container() { Id = 20 };
        entity = c;
    }
}

[TestFixture]
public class ReferenceTest
{
    [Test] 
    public void Casting_ByRef_Not_ReturningValue()
    {
        Container c= new Container();
        IEntity entity = c;
        new Command().ApplyCommand(ref entity);           
        Assert.AreEqual(c.Id, 20);            
    }
}
</code></pre>

<p>the test is failing, shouldn't passing by reference allow object reference change ?</p>
