title: c# Value still null after assigning a value
body: <p>i don't know what i'm doing wrong, i'm working on an existing application and i'm creating a unit test for this method.</p>
  
  <p>on the Test Method, i mocked the view and assigned a value on the item</p>
  
  <pre><code>_fakeView.Setup(x =&gt; x.Bag.Amount).Returns((decimal)300.32);
  </code></pre>
  
  <p>(Note that the Amount is string)</p>
  
  <p>and i'm passing the view object to the presenter and initialized</p>
  
  <pre><code>_presenter = new Presenter(_fakeView.Object);
  _presenter.InitializeForm();
  </code></pre>
  
  <p>and on the existing code for initialize, they have a line of code to reassign the values like this:</p>
  
  <pre><code>this._view.Amount = this._view.Bag.Amount.ToString();
  </code></pre>
  
  <p>when this line run, the this._view.Amount is still null even if this._view.Bag.Amount.ToString() has value.</p>
  
  <p>i even tried setting it directly</p>
  
  <pre><code>this._view.Amount = "asdfgsdf"; but still null
  </code></pre>
  
  <p>please help</p>