Skip to content

mgibas/EntityFramework.Testing.FakeItEasy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EntityFramework.Testing.FakeItEasy

Simple EntityFramework FakeItEasy utility class - feel free to contribute!

Getting Started:

  • Creating fake DbSet:
var fakeDbSet = Aef.FakeDbSet(new List<Model>{...});
A.CallTo(() => context.Models).Returns(fakeDbSet);
var fakeDbSet =  Aef.FakeDbSet<Model>(55); //55 Model fakes created by FakeItEasy
A.CallTo(() => context.Models).Returns(fakeDbSet);
var fakeDbSet = Aef.FakeDbSet<Model>(); //Empty collection
A.CallTo(() => context.Models).Returns(fakeDbSet);

About

EntityFramework FakeItEasy utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages