You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
690 B
C#
31 lines
690 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace EntityFrameworkCore.Jet.IntegrationTests.Model28
|
|
{
|
|
public abstract class Test : TestBase<Context>
|
|
{
|
|
|
|
|
|
[TestMethod]
|
|
public void Run()
|
|
{
|
|
var ad = new Advertisement
|
|
{
|
|
AdImages = new List<AdImage>
|
|
{
|
|
new AdImage {Image = "MyImage"}
|
|
},
|
|
|
|
Message = "MyMessage",
|
|
Title = "MyTitle",
|
|
User = new User()
|
|
};
|
|
|
|
Context.Advertisements.Add(ad);
|
|
Context.SaveChanges();
|
|
}
|
|
}
|
|
}
|