|
|
@ -28,7 +28,7 @@ namespace TestEF
|
|
|
|
Assert.Equal("Akali", champs.Name);
|
|
|
|
Assert.Equal("Akali", champs.Name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
|
public void Modify_Test()
|
|
|
|
public void Modify_Test()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -50,12 +50,12 @@ namespace TestEF
|
|
|
|
|
|
|
|
|
|
|
|
context.Nounours.Add(chewie);
|
|
|
|
context.Nounours.Add(chewie);
|
|
|
|
context.Nounours.Add(yoda);
|
|
|
|
context.Nounours.Add(yoda);
|
|
|
|
context.Nounours.Add(ewok);*/
|
|
|
|
context.Nounours.Add(ewok);
|
|
|
|
context.SaveChanges();
|
|
|
|
context.SaveChanges();
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
//uses another instance of the context to do the tests
|
|
|
|
//uses another instance of the context to do the tests
|
|
|
|
using (var context = new StubEFChampions(options))
|
|
|
|
/* using (var context = new StubEFChampions(options))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
context.Database.EnsureCreated();
|
|
|
|
context.Database.EnsureCreated();
|
|
|
|
|
|
|
|
|
|
|
@ -78,7 +78,7 @@ namespace TestEF
|
|
|
|
nameToFind = "wick";
|
|
|
|
nameToFind = "wick";
|
|
|
|
Assert.Equal(1, context.Champions.Where(n => n.Name.ToLower().Contains(nameToFind)).Count());
|
|
|
|
Assert.Equal(1, context.Champions.Where(n => n.Name.ToLower().Contains(nameToFind)).Count());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
[SetUp]
|
|
|
|
[SetUp]
|
|
|
|
public void Setup()
|
|
|
|
public void Setup()
|
|
|
|