-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
190 additions
and
76 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
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
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
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
22 changes: 22 additions & 0 deletions
22
sources/NetArchTest/Assemblies/PublicUse/AssemblyContainer.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,22 @@ | ||
using System.Diagnostics; | ||
using Mono.Cecil; | ||
using NetArchTest.Rules; | ||
|
||
namespace NetArchTest.Assemblies.PublicUse | ||
{ | ||
[DebuggerDisplay("{FullName}")] | ||
internal sealed class AssemblyContainer : IAssembly | ||
{ | ||
[DebuggerBrowsable(DebuggerBrowsableState.Never)] | ||
private readonly AssemblyDefinition _monoAssemblyDefinition; | ||
|
||
|
||
public string FullName => _monoAssemblyDefinition.FullName; | ||
|
||
|
||
public AssemblyContainer(AssemblyDefinition assemblyDefinition) | ||
{ | ||
_monoAssemblyDefinition = assemblyDefinition; | ||
} | ||
} | ||
} |
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
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,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace NetArchTest.Rules | ||
{ | ||
/// <summary> | ||
/// Assembly wrapper. | ||
/// </summary> | ||
public interface IAssembly | ||
{ | ||
/// <summary> | ||
/// FullName of the assembly | ||
/// </summary> | ||
string FullName { get; } | ||
} | ||
} |
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
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,29 @@ | ||
using System.Collections.Generic; | ||
using NetArchTest.Assemblies; | ||
|
||
namespace NetArchTest.Slices.Model | ||
{ | ||
internal class SliceContext | ||
{ | ||
private readonly LoadedData loadedData; | ||
private readonly SlicedTypes slicedTypes; | ||
|
||
public SliceContext(LoadedData loadedData, SlicedTypes slicedTypes) | ||
{ | ||
this.loadedData = loadedData; | ||
this.slicedTypes = slicedTypes; | ||
} | ||
|
||
|
||
|
||
public IReadOnlyList<AssemblySpec> GetAssemblies() | ||
{ | ||
return loadedData.Assemblies; | ||
} | ||
|
||
public SlicedTypes GetTypes() | ||
{ | ||
return slicedTypes; | ||
} | ||
} | ||
} |
Oops, something went wrong.