test-dependencyinjectionconsoleapp's People
test-dependencyinjectionconsoleapp's Issues
test naming
I'm OK with your approach, but in my practice I have often come across such a naming structure, for example: AddEvent_WhenAddNewEvent_ShouldBeSaveNewEventInRepositoryAndReturnNewEntityId.
Delete UI project and create Test project
Define all mapping profiles in BLL layer
Define all mapping profiles in BLL layer because in you case you map your DAL model to BLL model, but why did you define profiles in UI layer?
Best practice using one Assert for one test case (In most cases)
gitignore
add git ignore to the repository a lot of unnecessary things in the repository at the moment. The repository should only contain code.
useless property
For what purpose are you injecting an auto-mapper into a service if it is not used in the code in this service?
Bad practice using loop in the test
If you expect exception in your test case you need descibe it in the test name
https://github.com/catpuff13337/DependencyInjectionConsoleApp/blob/1bfca5c362f1588a89ad2dac3979cfcc49337cdb/Tests/Services/CompanyServiceTest.cs#L49-L62
for example: PublishValidation_WhenPublishValidationEventWithNotPublishStatusButSomeAreasInEventHaveNotPrice_ShouldBeThrowSomeAreaHasNotPriceException
Add interfaces for services
Add interfaces for services in BLL layer
In test project you shouldn't refer to the UI project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.