Exemple #1
0
 public static Topic GetTestTopic(this PersistenceTest test)
 {
     return(new Topic
     {
         SystemName = "SystemName 1",
         IncludeInSitemap = true,
         IncludeInTopMenu = true,
         IncludeInFooterColumn1 = true,
         IncludeInFooterColumn2 = true,
         IncludeInFooterColumn3 = true,
         DisplayOrder = 1,
         AccessibleWhenStoreClosed = true,
         IsPasswordProtected = true,
         Password = "******",
         Title = "Title 1",
         Body = "Body 1",
         Published = true,
         TopicTemplateId = 1,
         MetaKeywords = "Meta keywords",
         MetaDescription = "Meta description",
         MetaTitle = "Meta title",
         SubjectToAcl = true,
         LimitedToStores = true
     });
 }
Exemple #2
0
 public static ProductTag GetTestProductTag(this PersistenceTest test)
 {
     return(new ProductTag
     {
         Name = "Tag name 1",
     });
 }
Exemple #3
0
 public static Category GetTestCategory(this PersistenceTest test)
 {
     return(new Category
     {
         Name = "Books",
         Description = "Description 1",
         CategoryTemplateId = 1,
         MetaKeywords = "Meta keywords",
         MetaDescription = "Meta description",
         MetaTitle = "Meta title",
         ParentCategoryId = 2,
         PictureId = 3,
         PageSize = 4,
         AllowCustomersToSelectPageSize = true,
         PageSizeOptions = "4, 2, 8, 12",
         ShowOnHomePage = false,
         IncludeInTopMenu = true,
         Published = true,
         SubjectToAcl = true,
         LimitedToStores = true,
         Deleted = false,
         DisplayOrder = 5,
         CreatedOnUtc = new DateTime(2010, 01, 01),
         UpdatedOnUtc = new DateTime(2010, 01, 02),
     });
 }
Exemple #4
0
 public static Product GetTestProduct(this PersistenceTest test)
 {
     return(new Product
     {
         ProductType = ProductType.GroupedProduct,
         ParentGroupedProductId = 2,
         VisibleIndividually = true,
         Name = "Name 1",
         ShortDescription = "ShortDescription 1",
         FullDescription = "FullDescription 1",
         AdminComment = "AdminComment 1",
         ProductTemplateId = 2,
         ShowOnHomePage = false,
         MetaKeywords = "Meta keywords",
         MetaDescription = "Meta description",
         MetaTitle = "Meta title",
         AllowCustomerReviews = true,
         ApprovedRatingSum = 2,
         NotApprovedRatingSum = 3,
         ApprovedTotalReviews = 4,
         NotApprovedTotalReviews = 5,
         SubjectToAcl = true,
         LimitedToStores = true,
         Sku = "sku 1",
         MarkAsNew = true,
         MarkAsNewStartDateTimeUtc = new DateTime(2010, 01, 07),
         MarkAsNewEndDateTimeUtc = new DateTime(2010, 01, 08),
         DisplayOrder = 30,
         Published = true,
         Deleted = false,
         CreatedOnUtc = new DateTime(2010, 01, 01),
         UpdatedOnUtc = new DateTime(2010, 01, 02),
     });
 }
Exemple #5
0
 public static ProductPicture GetTestProductPicture(this PersistenceTest test)
 {
     return(new ProductPicture
     {
         DisplayOrder = 1,
         Picture = test.GetTestPicture()
     });
 }
Exemple #6
0
 public static ForumSubscription GetTestForumSubscription(this PersistenceTest test)
 {
     return(new ForumSubscription
     {
         CreatedOnUtc = new DateTime(2010, 01, 01),
         SubscriptionGuid = new Guid("11111111-2222-3333-4444-555555555555")
     });
 }
Exemple #7
0
 public static LocaleStringResource GetTestLocaleStringResource(this PersistenceTest test)
 {
     return(new LocaleStringResource
     {
         ResourceName = "ResourceName1",
         ResourceValue = "ResourceValue2"
     });
 }
Exemple #8
0
 public static PollVotingRecord GetTestPollVotingRecord(this PersistenceTest test)
 {
     return(new PollVotingRecord
     {
         Customer = test.GetTestCustomer(),
         CreatedOnUtc = DateTime.UtcNow
     });
 }
Exemple #9
0
 public static AclRecord GetTestAclRecord(this PersistenceTest test)
 {
     return(new AclRecord
     {
         EntityId = 1,
         EntityName = "EntityName 1"
     });
 }
Exemple #10
0
 public static StoreMapping GetTestStoreMapping(this PersistenceTest test)
 {
     return(new StoreMapping
     {
         EntityId = 1,
         EntityName = "EntityName 1"
     });
 }
Exemple #11
0
 public static ProductCategory GetTestProductCategory(this PersistenceTest test)
 {
     return(new ProductCategory
     {
         IsFeaturedProduct = true,
         DisplayOrder = 1
     });
 }
Exemple #12
0
 public static StateProvince GetTestStateProvince(this PersistenceTest test)
 {
     return(new StateProvince
     {
         Name = "California",
         Abbreviation = "CA",
         DisplayOrder = 1
     });
 }
Exemple #13
0
 public static CustomerAttributeValue GetTestCustomerAttributeValue(this PersistenceTest test)
 {
     return(new CustomerAttributeValue
     {
         Name = "Name 2",
         IsPreSelected = true,
         DisplayOrder = 1,
     });
 }
Exemple #14
0
 public static ActivityLogType GetTestActivityLogType(this PersistenceTest test)
 {
     return(new ActivityLogType
     {
         SystemKeyword = "SystemKeyword 1",
         Name = "Name 1",
         Enabled = true,
     });
 }
Exemple #15
0
 public static CategoryTemplate GetTestCategoryTemplate(this PersistenceTest test)
 {
     return(new CategoryTemplate
     {
         Name = "Name 1",
         ViewPath = "ViewPath 1",
         DisplayOrder = 1,
     });
 }
Exemple #16
0
 public static PollAnswer GetTestPollAnswer(this PersistenceTest test)
 {
     return(new PollAnswer
     {
         Name = "Answer 1",
         NumberOfVotes = 1,
         DisplayOrder = 2
     });
 }
Exemple #17
0
 public static Setting GetTestSetting(this PersistenceTest test)
 {
     return(new Setting
     {
         Name = "Setting1",
         Value = "Value1",
         StoreId = 1,
     });
 }
Exemple #18
0
 public static PermissionRecord GetTestPermissionRecord(this PersistenceTest test)
 {
     return(new PermissionRecord
     {
         Name = "Name 1",
         SystemName = "SystemName 2",
         Category = "Category 4",
     });
 }
Exemple #19
0
 public static SearchTerm GetTestSearchTerm(this PersistenceTest test)
 {
     return(new SearchTerm
     {
         Keyword = "Keyword 1",
         StoreId = 1,
         Count = 2,
     });
 }
Exemple #20
0
 public static CustomerPassword GetTestCustomerPassword(this PersistenceTest test)
 {
     return(new CustomerPassword
     {
         Password = "******",
         PasswordFormat = PasswordFormat.Clear,
         PasswordSalt = string.Empty,
         CreatedOnUtc = new DateTime(2010, 01, 01)
     });
 }
Exemple #21
0
 public static UrlRecord UrlRecord(this PersistenceTest test)
 {
     return(new UrlRecord
     {
         EntityId = 1,
         EntityName = "EntityName 1",
         Slug = "Slug 1",
         LanguageId = 2
     });
 }
Exemple #22
0
 public static CustomerRole GetTestCustomerRole(this PersistenceTest test)
 {
     return(new CustomerRole
     {
         Name = "Administrators",
         Active = true,
         IsSystemRole = true,
         SystemName = "Administrators"
     });
 }
Exemple #23
0
 public static BlogComment GetTestBlogComment(this PersistenceTest test)
 {
     return(new BlogComment
     {
         IsApproved = true,
         CreatedOnUtc = new DateTime(2010, 01, 03),
         Customer = test.GetTestCustomer(),
         Store = test.GetTestStore()
     });
 }
Exemple #24
0
 public static CustomerAttribute GetTestCustomerAttribute(this PersistenceTest test)
 {
     return(new CustomerAttribute
     {
         Name = "Name 1",
         IsRequired = true,
         AttributeControlType = AttributeControlType.Datepicker,
         DisplayOrder = 2
     });
 }
Exemple #25
0
 public static LocalizedProperty GetTestLocalizedProperty(this PersistenceTest test)
 {
     return(new LocalizedProperty
     {
         EntityId = 1,
         LocaleKeyGroup = "LocaleKeyGroup 1",
         LocaleKey = "LocaleKey 1",
         LocaleValue = "LocaleValue 1"
     });
 }
Exemple #26
0
 public static ForumGroup GetTestForumGroup(this PersistenceTest test)
 {
     return(new ForumGroup
     {
         Name = "Forum Group 1",
         DisplayOrder = 1,
         CreatedOnUtc = new DateTime(2010, 01, 01),
         UpdatedOnUtc = new DateTime(2010, 01, 02),
     });
 }
Exemple #27
0
 public static ForumPost GetTestForumPost(this PersistenceTest test)
 {
     return(new ForumPost
     {
         Text = "Forum Post 1 Text",
         IPAddress = "127.0.0.1",
         CreatedOnUtc = new DateTime(2010, 01, 01),
         UpdatedOnUtc = new DateTime(2010, 01, 02)
     });
 }
Exemple #28
0
 public static GenericAttribute GetTestGenericAttribute(this PersistenceTest test)
 {
     return(new GenericAttribute
     {
         EntityId = 1,
         KeyGroup = "KeyGroup 1",
         Key = "Key 1",
         Value = "Value 1",
         StoreId = 2,
     });
 }
Exemple #29
0
 public static NewsComment GetTestNewsComment(this PersistenceTest test)
 {
     return(new NewsComment
     {
         CommentText = "Comment text 1",
         IsApproved = false,
         CreatedOnUtc = new DateTime(2010, 01, 03),
         Customer = test.GetTestCustomer(),
         Store = test.GetTestStore()
     });
 }
Exemple #30
0
 public static NewsLetterSubscription GetTestNewsLetterSubscription(this PersistenceTest test)
 {
     return(new NewsLetterSubscription
     {
         Email = "*****@*****.**",
         NewsLetterSubscriptionGuid = _newsLetterSubscriptionGuid,
         CreatedOnUtc = new DateTime(2010, 01, 01),
         StoreId = 1,
         Active = true
     });
 }