PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Execution/for_TypeDiscoverer/given/a_type_discoverer.cs

#
C# | 20 lines | 18 code | 2 blank | 0 comment | 0 complexity | 82223e7c764684aa0108dfbb6cdd59a1 MD5 | raw file
 1using System.Reflection;
 2using Bifrost.Execution;
 3using Machine.Specifications;
 4using Moq;
 5
 6namespace Bifrost.Specs.Execution.for_TypeDiscoverer.given
 7{
 8	public class a_type_discoverer
 9	{
10		protected static TypeDiscoverer TypeDiscoverer;
11
12		Establish context = () =>
13		                    	{
14		                    	    var assemblyLocatorMock = new Mock<IAssemblyLocator>();
15		                    	    assemblyLocatorMock.Setup(x => x.GetAll()).Returns(new[]
16		                    	                                                           {typeof (a_type_discoverer).Assembly});
17                                    TypeDiscoverer = new TypeDiscoverer(assemblyLocatorMock.Object);
18		                    	};
19	}
20}