This repository has been archived by the owner on Feb 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from awesome-inc/master
Update from Master
- Loading branch information
Showing
79 changed files
with
1,645 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
namespace NZazu.Contracts | ||
using System.Collections.Generic; | ||
|
||
namespace NZazu.Contracts | ||
{ | ||
public class CheckDefinition | ||
{ | ||
public string Type { get; set; } | ||
public string[] Values { get; set; } | ||
public IDictionary<string, string> Settings { get; set; } = new Dictionary<string, string>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
using FluentAssertions; | ||
using NEdifis.Attributes; | ||
using NUnit.Framework; | ||
using System.Collections.Generic; | ||
|
||
namespace NZazu.Contracts | ||
{ | ||
[TestFixtureFor(typeof (CheckDefinition))] | ||
[TestFixtureFor(typeof(CheckDefinition))] | ||
// ReSharper disable InconsistentNaming | ||
internal class CheckDefinition_Should | ||
{ | ||
[Test] | ||
public void Be_Creatable() | ||
{ | ||
var values = new[]{"value1", "value2"}; | ||
var sut = new CheckDefinition {Type = "type", Values = values}; | ||
var settings = new Dictionary<string, string>() { { "key1", "value1" }, { "key2", "value2" } }; | ||
var sut = new CheckDefinition { Type = "type", Settings = settings }; | ||
sut.Type.Should().Be("type"); | ||
sut.Values.Should().BeEquivalentTo(values); | ||
sut.Settings.Should().BeEquivalentTo(settings); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.