I'm using the MockingContainer to automatically set up my dependencies. How do I assert that a property on one of those dependencies gets set?
[SetUp]public void SetUp(){ //arrange _baseUrl = "http://baseUrl"; _container = new MockingContainer<ApiInteractionService>(); _container.Arrange<IConfigService>(m => m.BaseUrl).Returns(_baseUrl); _uut = _container.Instance;}
The following fails with 0 calls, which makes sense since I believe it's looking at the Getter, not the Setter. So how do I assert that the Setter was called by the unit under test?
[Test]public void BaseUrlSet(){ //act var _ = _uut.GetMazeId((InitialRequest) Arg.AnyObject); //assert _container.Assert<IRestService>(m => m.BaseUrl, Occurs.Once());}