.net - Proper or optimized test way within asp.net web api application -


we have asp.net web api application, in used architecture:

  1. presentation layer

  2. bll layer

  3. dal layer

we discussed, me , colleges, tdd , how can used in our project :

my approach

i see have test bll layer adding full unit tests list, then test presentation layer

other opinion

we have test services(presentation layer). if test failed then, test methods(in bll) have relation service

so discussion

proper vs optimized way

so need know

  1. what best approach between them?
  2. can size , type of project interfers in comparison?

thanks,

in bl, dal should injected dependencies , should using dependency injection container unity. reason being, unit tests shld have no dependency databases. when bl tests isolated databases tests can run fast too


Comments

Popular posts from this blog

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -