public void SetLinks_UrlHelperAndModelAreValid_ShouldSetLinks() { //Arrange var linksSetter = new MockLinkSetter(); var entity = new FakeLinkContaining(); //Act linksSetter.SetLinks(new UrlHelper(), entity); //Assert Assert.That(entity.Links != null); Assert.That(linksSetter.LastModelToSetLinks == entity); }
public void EstablishContext() { _entity = new FakeLinkContaining(); }