Skip to content

Commit 5191246

Browse files
committed
Removed usages of obsolete method
1 parent 8ce05eb commit 5191246

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Samples/SampleApp.Tests/DomainTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace SampleApp.Tests
22
{
3-
using System.Linq;
43
using NUnit.Framework;
54
using SampleApp.Domain;
65
using TestStack.ConventionTests;
@@ -15,7 +14,7 @@ public class DomainTests
1514
public DomainTests()
1615
{
1716
domainEntities = Types.InAssemblyOf<DomainClass>("Domain Entities",
18-
types => types.Where(t=>t.Namespace.StartsWith("SampleApp.Domain")));
17+
type => type.Namespace.StartsWith("SampleApp.Domain"));
1918
}
2019

2120
[Test]

TestStack.ConventionTests.Tests/TypeBasedConventions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace TestStack.ConventionTests.Tests
22
{
3-
using System.Linq;
43
using ApprovalTests;
54
using ApprovalTests.Reporters;
65
using NUnit.Framework;
@@ -17,7 +16,7 @@ public class TypeBasedConventions
1716
public TypeBasedConventions()
1817
{
1918
nhibernateEntities = Types.InAssemblyOf<SampleDomainClass>("nHibernate Entitites",
20-
types => types.Where(t => t.IsConcreteClass() && t.Namespace == typeof (SampleDomainClass).Namespace));
19+
type => type.IsConcreteClass() && type.Namespace == typeof (SampleDomainClass).Namespace);
2120
}
2221

2322
[Test]

0 commit comments

Comments
 (0)