Skip to content

Commit 583c24f

Browse files
author
Frode Sjovatsen
committed
fix for issue #1
1 parent 8d253e6 commit 583c24f

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

FINT.Model.Resource.Test/LinkTest.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
using Newtonsoft.Json;
2-
using System;
3-
using System.Diagnostics;
42
using Xunit;
53
using Xunit.Abstractions;
64

75
namespace 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
}

FINT.Model.Resource/FINT.Model.Resource.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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>

FINT.Model.Resource/Link.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)