zzz projects Entity Framework Effort EF Effort
Getting Started Release Notes
Knowledge Base Online Examples  GitHub
  • Getting Started
  • Release Notes
  • Knowledge Base
  • Online Examples
  •  GitHub
  •   Download  

Entity Framework Effort - Knowledge Base (KB)

English (en) Français (fr) Español (es) Italiano (it) Deutsch (de) русский (ru) 한국어 (ko) 日本語 (ja) 中文简体 (zh-CN) 中文繁體 (zh-TW)

23 results for: in tag: unit-testing

Unable to use existing database in unit tests with Effort framework

I am trying to write test using a database, hosted in Azure SQL, with ...Effort... framework on Entity Framework 6....When executing the following code, an exception is thrown: ...[ClassInitialize] public static void ClassInitialize(TestContext context) {...
c# effort entity-framework entity-framework-6 unit-testing
asked by Lena Kaplan

Effort Framework does not recognize Entity Model schema

I have an entity model of a Sybase ASE database and I am trying to use the ...Effort Framework... to create unit tests for it. I am able to access the database with the entity model in both my main project and unit test project, however when try to use Ef...
c# effort entity-framework-5 sybase-ase unit-testing
asked by elliot-j

How would I configure Effort Testing Tool to mock Entity Framework's DbContext withOut the actual SQL Server Database up and running?

Our team's application development involves using Effort Testing Tool to mock our Entity Framework's DbContext. However, it seems that Effort Testing Tool needs to be see the actual SQL Server Database that the application uses in order to mock our Entit...
effort entity-framework mocking sql-server unit-testing
asked by CS Lewis

Effort Unit test: Argument 'xmlReader' is not valid

I'm currently trying to unit test a context class of the Entity Framework with the "Effort" framework (...http://effort.codeplex.com/wikipage?title=Tutorials&referringTitle=Home...)...If my unit test project has two classes that contain methods use effort...
c# effort unit-testing
asked by rawajames

unit testing with effort for entity framework 6 with computed values

Using effort EF6 with code first does not populate computed values. I have a datetime field (FechaCreacion) that is computed. How can I emulate it in Effort, so It is populated with DateTime.Now after savingChanges() ?...This post ...Using Effort (EF Test...
effort entity-framework entity-framework-6 unit-testing
asked by nerlijma

Update model causes interface to be removed from DbContext when using Effort with Entity Framework

Presently, I am attempting to use Effort (...https://effort.codeplex.com/...) with my Entity Framework 6 solution to allow unit testing without requiring a database connection (see ...http://www.codeproject.com/Articles/460175/Two-strategies-for-testing-E...
c# effort entity-framework-6 unit-testing
asked by user8128167

How can you perform the same tests as Effort using only Moq?

Presently, I have setup a lot of tests including data access layer and business logic layer tests using Effort (see ...https://effort.codeplex.com/...). We have already been using Moq in our unit tests, and my boss would like to keep things simple, so he...
c# effort entity-framework-6 moq unit-testing
asked by user8128167

Is there anyway I can load the data to the in-memory instead of using.csv files in effort for unit-testing?

Is there anyway I can load the data to the in-memory instead of using.csv files in effort for unit-testing?...Scenario: I want to load the data to the in-memory to use the Effort framework which creates the fake dbcontext and performs the operation. Inste...
csv effort entity-framework nunit unit-testing
asked by ravi

Testing with Effort and TypeName attribute

I'd like to test some code, and to achieve that, I'd need to fake DbContext defined in DAL (...Entity Framework 6 - Code first...). It's going mostly well, but I bumped into an problem when the data model class is using the ...TypeName... attribute. I mad...
c# dbcontext effort entity-framework unit-testing
asked by Szeki

Unit testing with Effort - Adding records with identity off

I am using using Effort (for EF4) to do some unit tests. ...var ctx= Effort.ObjectContextFactory.CreateTransient<TheContext>(Shared.Connection); ctx.companies.AddObject(new company() { ID = 100, name = "Agent", is_agent = true }); ctx.SaveChanges(System....
effort mstest objectcontext unit-testing
asked by MJK

Effort unit testing Entity framework 6.1.3 DB-first

I am experiencing problems when using Effort framework (version 1.1.4) to unit test my DB-layer....I have a DB-layer using Entity framework 6.1.3 and the model is created using database-first approach so there is an ...*.edmx... file describing the model....
c# effort entity-framework unit-testing
asked by gurkan

Shim DbContext ctor for Effort unit testing

I'd like to intercept ...var context = new MyDbContext()... to return a different constructor call instead....The great thing about ...EFfort... is that it let's you set up an easy in-memory database for unit testing....var connection = Effort.DbConnectio...
effort entity-framework microsoft-fakes shim unit-testing
asked by RJB

Effort- FirstOrDefault returns null when Faking Database

I'm trying to create some unit tests for my project, after much digging around I found Effort, the idea is great, it mocks the database instead of the dealing with faking the DBContext which by the way is really hard to get it right when using a complex s...
c# effort entity-framework mocking unit-testing
asked by General Electric

ASP Boilerplate problems using Effort in unit testing with EFProf (Entity Framework Profiler)

Having issues using EFProf (...http://www.hibernatingrhinos.com/products/EFProf...) with ASP Boilerplate (...http://www.aspnetboilerplate.com/...). ...For unit testing, ASP Boilerplate uses Effort (...https://github.com/tamasflamich/effort...) for mockin...
asp.net-boilerplate effort entity-framework entity-framework-6 unit-testing
asked by Todd Brooks

Unit Test with Effort EF6 with Async Methods

I'm trying to setup Unit tests for this. But every example I've seen that actually works is this type of setup. It will work this way....//Setup DBContext public MyContext(DbConnection connection) : base(connection, true){} //Have some service that gets p...
c# effort entity-framework entity-framework-6 unit-testing
asked by KryptoBeard

EntityFramework, DbContextScope and Effort - exception: DbContext has been disposed inside unit test

I am trying to write unit tests (with NUnit) for service layer which uses:...Entity Framework as Data Access Layer...DbContextScope... for managing DbContext lifetime...I also use ...Effort.EF6... for mocking DbContext in unit tests. Unfortunately, I cann...
c# dbcontext effort entity-framework unit-testing
asked by PJDev

Effort (EF Unit Testing) giving errors

I am trying to do unit testing on some classes that reply on an Entity Framework DB Context. For help, I managed to find a library called Effort, which seems to be a little old, and not very well documented, but it seems to work, and seems to be quite pop...
c# effort entity-framework unit-testing
asked by JonathanPeel

Effort (C#) - 'Sequence contains no matching element' when seeding data to any of my entities

I am trying to build some unit tests for a few web service calls in my project. I am using Entity Framework 6.1.3 in my project to retrieve the data at the service layer (with a code-first approach). I did some research on how to Mock a DatabaseContext ob...
c# effort entity-framework unit-testing
asked by Adrian Cruz

UnintentionalCodeFirstException | Entity Framework Unit Testing with Effort.Ef6 using Database First

The situation...I want to enable unit testing of my ...DbContext... based on entity framework 6. I have created my ...DbContext... and my models with the database first approach and now have an ....edmx... designer file....The problem...My automatically c...
c# effort entity-framework entity-framework-6 unit-testing
asked by WoIIe

Testing eager-loading scenarios with Effort.EF6

We're using ...Effort.EF6... to build a test suite for an ASP.NET Web API 2 service working against an in-memory database, and for the most part it's a wonderful experience....However, for reasons unrelated to this question, we have had to turn off lazy l...
c# effort entity-framework unit-testing
asked by Tomas Aschan

Page 1 of 2
  • 1
  • 2
  • »

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79