using System.Globalization; using Centron.Common.UtilClasses; namespace Centron.Tests.EndToEnd.Infrastructure.Fixtures { public class CultureAssemblyFixture { public CultureAssemblyFixture() { // Even if this application is started on a windows machine with different language // The c-entron.NET and Web-Service don't work with all cultures, so use the CultureUtils to get one that is compatible with us CultureInfo.DefaultThreadCurrentCulture = CultureUtils.GetCultureInfoForThisMachine(); // Also set the text-language CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.DefaultThreadCurrentCulture; } } }