File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using Newtonsoft . Json ;
2- using System ;
3- using System . Diagnostics ;
42using Xunit ;
53using Xunit . Abstractions ;
64
75namespace FINT . Model . Resource . Test
86{
97 public class LinkTest
108 {
11- private readonly ITestOutputHelper output ;
12-
139 public LinkTest ( ITestOutputHelper output )
1410 {
1511 this . output = output ;
1612 }
1713
14+ private readonly ITestOutputHelper output ;
15+
1816 [ Fact ]
19- public void Create_Link_with_PersonResource_placeholder ( )
17+ public void Create_Link_with_Person_placeholder ( )
2018 {
21- var link = Link . with ( typeof ( PersonResource ) , "/id" ) ;
19+ var link = Link . with ( typeof ( Person ) , "/id" ) ;
2220
2321 Assert . Equal ( "${test.person}/id" , link . href ) ;
2422 }
2523
2624 [ Fact ]
27- public void Create_Link_with_Person_placeholder ( )
25+ public void Create_Link_with_PersonResource_placeholder ( )
2826 {
29- var link = Link . with ( typeof ( Person ) , "/id" ) ;
27+ var link = Link . with ( typeof ( PersonResource ) , "/id" ) ;
3028
3129 Assert . Equal ( "${test.person}/id" , link . href ) ;
3230 }
@@ -51,7 +49,6 @@ public void Serialise_Link_with_Person_placeholder()
5149 output . WriteLine ( ObjectDumper . Dump ( deserializeObject ) ) ;
5250 Assert . NotNull ( deserializeObject . href ) ;
5351 Assert . Equal ( link . href , deserializeObject . href ) ;
54-
5552 }
5653 }
5754}
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <TargetFramework >netstandard1.4</TargetFramework >
4- <Version >1.0.0 </Version >
4+ <Version >1.0.1 </Version >
55 <Authors >FINT</Authors >
66 <PackageTags >fint</PackageTags >
77 </PropertyGroup >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ private Link(string verdi)
1414 href = verdi ;
1515 }
1616
17- public string href { get ; }
17+ public string href { get ; set ; }
1818
1919 public static Link with ( string verdi )
2020 {
You can’t perform that action at this time.
0 commit comments