Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Feb 11, 2019
1 parent 3fa793d commit 124c371
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions ArdalisRating.Tests/RatingEngineRate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,24 @@ namespace ArdalisRating.Tests
{
public class RatingEngineRate
{
[Fact]
public void ReturnsRatingOf10000For200000LandPolicy()
{
var policy = new Policy
{
Type = PolicyType.Land,
BondAmount = 200000,
Valuation = 200000
};
string json = JsonConvert.SerializeObject(policy);
File.WriteAllText("policy.json", json);

var engine = new RatingEngine();

engine.Rate();

var result = engine.Rating;

Assert.Equal(10000, result);
}
[Fact]
public void ReturnsRatingOf10000For200000LandPolicy()
{
var policy = new Policy
{
Type = PolicyType.Land,
BondAmount = 200000,
Valuation = 200000
};
string json = JsonConvert.SerializeObject(policy);
File.WriteAllText("policy.json", json);

var engine = new RatingEngine();
engine.Rate();
var result = engine.Rating;

Assert.Equal(10000, result);
}

[Fact]
public void ReturnsRatingOf0For200000BondOn260000LandPolicy()
Expand All @@ -41,9 +39,7 @@ public void ReturnsRatingOf0For200000BondOn260000LandPolicy()
File.WriteAllText("policy.json", json);

var engine = new RatingEngine();

engine.Rate();

var result = engine.Rating;

Assert.Equal(0, result);
Expand Down

0 comments on commit 124c371

Please sign in to comment.