PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 4ms app.codeStats 0ms

/Source/Bifrost.Specs/Globalization/given/a_localizer_mock.cs

#
C# | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | 42d6ac798c5b22bdd40020be90cda26a MD5 | raw file
 1using Bifrost.Globalization;
 2using Machine.Specifications;
 3using Moq;
 4
 5namespace Bifrost.Specs.Globalization.given
 6{
 7	public class a_localizer_mock
 8	{
 9		protected static Mock<ILocalizer> localizer_mock;
10
11		Establish context = () =>
12		                    	{
13		                    		localizer_mock = new Mock<ILocalizer>();
14		                    		localizer_mock.Setup(l => l.BeginScope()).Returns(LocalizationScope.FromCurrentThread);
15		                    	};
16	}
17}