Skip to content

Conversation

@Kasterov
Copy link
Contributor

Code reviewers

@LanchevychMaxym
@Tatiana2424
@Katerix
@Tysyatsky
@NadiaKishchuk
@MementoMorj
@EyR1oN

Summary of change

Everything is done and ready for merge. Please, make sure that all tests work properly.

Kasterov and others added 30 commits January 31, 2023 21:50
Added directories for tests
GetByStreetcodeId unit tests
GetAllFacts should return type of List<FactDTO>
Unit tests for Video and Fact part done
Refactoring unit tests for videos handler and facts handlers. Especially refactoring names of tests and also new algorithm for testing delete (fact) handler.
Audio, Streetcodes and RelatedFigure MediatR classes tested.
Unit tests. Not sure in DeleteTextTest especially
An answer for the previous change request. Changed naming and moved setups to private methods.
Change handlers names in tests according to last updates and use namespaces instead of full path to Video entity.
New names for handlers according to last updates. Use namespaces instead of full path to entity Fact.
Considered using some naming conventions. Refactored some comments devoted to current action in tests (Arrange, Act, Assert)
How Nazar said, change multiple Assert with current method Assert.Multiple
refactored everything in general. There were some mistakes.
Refactored (Logic of mocks return now is situated in private static methods). New test added. In case if repo return null handler throw error and now it covered.
Facts refactored and logic with mock returning now outside (in static private function)
Changed files according to the comments.
Followed Natalia's advices
Handlers moq now in //Arrange section instead of //Act
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants