Remove campaign test images and add new two images and change the name campaign seed

This commit is contained in:
Christian Arenas 2017-06-16 11:44:51 +02:00
parent 278083ae8e
commit a146fd3239
8 changed files with 9 additions and 7 deletions

View File

@ -141,7 +141,9 @@
var userCampaignList = await _context.Rules
.OfType<UserLocationRule>()
.Include(c => c.Campaign)
.Where(c => c.LocationId == userLocation.LocationId)
.Where(c => c.Campaign.From >= DateTime.Now
&& c.Campaign.To <= DateTime.Now
&& c.LocationId == userLocation.LocationId)
.Select(c => c.Campaign)
.ToListAsync();

View File

@ -33,7 +33,7 @@
{
new Campaign
{
Name = "Campaign Name 1",
Name = ".NET Bot Black Hoodie 50% OFF",
Description = "Campaign Description 1",
From = DateTime.Now,
To = DateTime.Now.AddDays(7),
@ -42,24 +42,24 @@
{
new UserLocationRule
{
Description = "UserLocationRule1",
Description = "Campaign is only for United States users.",
LocationId = 1
}
}
},
new Campaign
{
Name = "Campaign Name 2",
Name = "Roslyn Red T-Shirt 3x2",
Description = "Campaign Description 2",
From = DateTime.Now.AddDays(7),
From = DateTime.Now.AddDays(-7),
To = DateTime.Now.AddDays(14),
PictureUri = "http://externalcatalogbaseurltobereplaced/api/v1/campaigns/2/pic",
Rules = new List<Rule>
{
new UserLocationRule
{
Description = "UserLocationRule2",
LocationId = 6
Description = "Campaign is only for Seattle users.",
LocationId = 3
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB