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.
28 lines
620 B
C#
28 lines
620 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 AdImage { Image = "MyImage" }],
|
|
|
|
Message = "MyMessage",
|
|
Title = "MyTitle",
|
|
User = new User()
|
|
};
|
|
|
|
Context.Advertisements.Add(ad);
|
|
Context.SaveChanges();
|
|
}
|
|
}
|
|
}
|