コード例 #1
0
        [Test] public void WhenHyphenatedRouteNull_ThenReturnNull()
        {
            var sut    = new HyphenControllerTransformer();
            var result = sut.TransformOutbound(null);

            result.Should().BeNull();
        }
コード例 #2
0
        public void WhenHyphenatedRoute_ThenAddCleanHyphenatedRouteToApplication()
        {
            var sut    = new HyphenControllerTransformer();
            var result = sut.TransformOutbound("YourDetails");

            result.Should().Be("your-details");
        }