When you planning to update nuget package?
Closed this issue · 1 comments
vdasus commented
My code is not working as expected with last nuget package, but it's ok with NetArchTest compiled from source code.
I think it's bad idea to search what is the problem on my or netarch code, because i'm totally newbie in netarch and question about plans of nuget package upgrade. Thank you
[Fact]
public void Domain_Classes_Should_Not_Depend_On_DomainServices_Layer()
{
var types = Types.InAssembly(ApplicationAssembly);
var result = types
.That()
.ResideInNamespaceMatching(@"^gOldCleaner\.Domain$")
.Should()
.NotHaveDependencyOn("gOldCleaner.DomainServices")
.GetResult();
result.FailingTypeNames.Should().BeNullOrEmpty("Domain can't depend on DomainServices");
result.IsSuccessful.Should().BeTrue();
}
just for testing added FolderItemService in gOldCleaner.DomainServices in the same assembly, but with different namespace
namespace gOldCleaner.Domain
{
public sealed class FolderItem: ValueObject
{
public FolderItem(string description, string folderPath, string searchPattern, TimeSpan deleteAfter, bool isDeleteEmptyFolders
//add this just to test that dependency catched by test
, FolderItemService svc = null)
{
With last nuget (1.2.4) package result is always false positive (dependency not catched), with source code all is ok, dependency catched.