Unity Nunit & Rhino Mocks

Can anyone give me a good example of using rhinos, nonites and unity. I read the help for each of them, but there seems to be no good sample projects, how could you use them together and how to create projects / test projects using them. That is, you create new ioc containers in your test project that point to dummy classes. Then, where rhino enters it.

Thanks for any help.

+3
source share
2 answers

I use all 3 of these frameworks together. It seems your problem is that you are trying to learn too many things at the same time.

IoC , - Rhino stubs/mocks .

IOC, , , MVP .

. . , IOC, , Pro ASP.NET MVC - 2- , , . Unity, , , . Moq Rhino, - .

+5

IoC . , .

: Person IPerson. PersonTests, Person. Rhino Mocks IPerson Person.

( , ).

IoC ( ).

+1

Source: https://habr.com/ru/post/1764760/


All Articles