private void CreateWebSite()
        {
            _webSite = Repository.Data.Get<WebSite>().FirstOrDefault().Value;

            if (_webSite != null)
                return;

            var currency = new Currency { Code = "Rub", TextFormat = "hernia" };
            Repository.Data.Save(currency);
            var language = new Language { Culture = CultureInfo.CurrentCulture, IsDefault = true };
            Repository.Data.Save(language);

            var webSite = new WebSite {
                Currency = currency,
                Language = language,
                DomainName = "Domain",
                Name = "Name" };

            Repository.Data.Save(webSite);
            _webSite = webSite;
        }
        public void WebSiteInsertTest()
        {
            var pageType = new WebSite();

            try
            {
                Repository.Data.Save(pageType);
            }
            catch (ValidationArgumentException ex)
            {
                Assert.True(ex.ValidationResult.Count == 4);
            }
        }