Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void EstablishContext()
 {
     _entity = new FakeLinkContaining();
 }