-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
b81dc2c
commit 3a09024
Showing
7 changed files
with
95 additions
and
4 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
21 changes: 21 additions & 0 deletions
21
src/CloudAwesome.Markdown/CloudAwesome.MarkdownMaker.Tests/ConvertPocoToMarkdownTests.cs
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using CloudAwesome.MarkdownMaker.Tests.TestDataModels; | ||
using NUnit.Framework; | ||
|
||
namespace CloudAwesome.MarkdownMaker.Tests | ||
{ | ||
public class ConvertPocoToMarkdownTests | ||
{ | ||
[Test] | ||
public void FirstTest() | ||
{ | ||
var persona = new Persona | ||
{ | ||
FirstName = "Pedro", | ||
LastName = "Gumula", | ||
Description = "This person is a sample person, which is very interesting" | ||
}; | ||
|
||
|
||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/CloudAwesome.Markdown/CloudAwesome.MarkdownMaker.Tests/TestDataModels/Persona.cs
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace CloudAwesome.MarkdownMaker.Tests.TestDataModels | ||
{ | ||
public class Persona: IDocumentMe | ||
{ | ||
public string FirstName { get; set; } | ||
public string LastName { get; set; } | ||
public string Description { get; set; } | ||
public DateTime DateOfBirth { get; set; } | ||
|
||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
src/CloudAwesome.Markdown/CloudAwesome.MarkdownMaker/Converters/PocoConverter.cs
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace CloudAwesome.MarkdownMaker.Converters | ||
{ | ||
public static class PocoConverter | ||
{ | ||
public static List<IDocumentPart> Convert(this IDocumentMe pocoClass) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public static List<IDocumentPart> Convert(this IEnumerable<IDocumentMe> pocoClasses) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/CloudAwesome.Markdown/CloudAwesome.MarkdownMaker/IDocumentMe.cs
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace CloudAwesome.MarkdownMaker | ||
{ | ||
/// <summary> | ||
/// Inherit from this to enable POCO to MD conversion | ||
/// </summary> | ||
public interface IDocumentMe { } | ||
} |
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