Unit Testing and Performance Using Entity Framework 4.0
Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
POANGEN is a web application for rent management. The core of the application is a module that performs rent calculations. In the past the application relied heavily on business logic in stored procedures that made the program hard to test and maintain.
The purpose of this thesis was tofind a new method for combining unit testing and data access. A new implementation of the rent calculation had to be created that was easier to test, maintain and have good performance.
This thesis shows how to combine data access and unit tests using Entity Framework 4.0, an object relational mapping framework from Microsoft. The new module uses the Repository and Specification design patterns to create a data abstraction that is suitable for unit testing.
Also the performance of Entity Framework 4.0 is evaluated and compared to traditional data loading and it shows that Entity Framework 4.0 severely lacks in performance when loading or saving large amounts of data. However the use of POCO entities makes it possible to create optimized functionality for time critical data access.
Place, publisher, year, edition, pages
, UMNAD, 935
Engineering and Technology
IdentifiersURN: urn:nbn:se:umu:diva-68046OAI: oai:DiVA.org:umu-68046DiVA: diva2:615605
Master of Science Programme in Computing Science and Engineering