Sunday, 9 February 2014

Creating N-Tier Applications in C# - Part 2

 

 

Testing a Domain-Centric N-Tier Application

 

image

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

 

Demo of Test Organization

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Test Automation

 

image

 

 

 

image

 

 

 

 

Demo of Test Automation

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Persistence Best Practices

 

image

 

 

 

 

image

 

 

 

 

 

 

image

 

Note: In our application’s MODEL or Domain objects are fall under above object life cycle.

 

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

 

Entity Framework

 

image

 

 

 

 

image

image

 

 

 

 

Example of mapping between Domain objects and Entity using LINQ Select

 

image

 

 

 

 

Mapping with Auto Mapper

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

Note:  In the above code snippet automapper tool will automatically map all the members of Entity objects to Domain objects

 

 

 

EF with Code First

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Core Logic Reuse

image

 

 

 

image

 

 

 

 

image

 

Note:  Our components are based variety of different software external or internal components like LEGO.

 

 

 

image

 

 

 

 

image

 

 

Note:  This module, we are going to concentrate on Application and UI layers.

 

 

 

 

image

 

 

 

 

 

Inversion of Control

 

Old Method:

image

 

 

 

New method with help of IOC Container

image

 

 

 

 

image

 

 

 

Adding Structure Map

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

New Requirements

 

image

 

 

 

image

 

 

 

Demo of Console Application

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

New information

 

image

 

 

 

Demo of Adding Services

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

 

DTO and App-Specific Logic

 

image

 

 

 

 

Solution Organization

 

image

 

 

 

image

 

 

 

 

Blogger Labels: Tier,Applications,Part,Domain,Centric,Application,Demo,Test,Organization,Automation,Persistence,Best,Practices,Note,MODEL,life,Framework,Example,LINQ,Select,Auto,Mapper,snippet,tool,Code,Logic,Reuse,components,LEGO,module,layers,Inversion,Control,Method,Container,Structure,Requirements,Console,information,Services,Specific,Solution

No comments:

Post a Comment