예제 #1
0
        public void TemplateHandlerShouldAlwaysProcess()
        {
            // arrange
            var registrationMock = new Mock <IHateoasRegistration <Person> >(MockBehavior.Strict);

            registrationMock
            .SetupGet(r => r.ArgumentDefinitions)
            .Returns(new Expression <Func <Person, object> >[] { p => p.Id });

            // act & assert
            _handler.CanProcess(registrationMock.Object, _linkBuilderMock.Object).Should().BeTrue();
        }