コード例 #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);
        }
コード例 #2
0
 public void EstablishContext()
 {
     _entity = new FakeLinkContaining();
 }