How to get access to parameters value in Returns() using FakeItEasy?

Ok, it would seem that ReturnsLazily() is the answer. So here’s what I did: var factory = A.Fake<IFactory> (); A.CallTo (() => factory.Create (A<string>.Ignored, A<string>.Ignored)) .ReturnsLazily ((string name, string data) => new Data (name, data)); var module = new QuickModule (factory); var list = module.GetData (); Is this the recommended way or is there another?

Are fakes better than Mocks? [closed]

To be clear, I created FakeItEasy so I’ll definitely not say whether one framework is better than the other, what I can do is point out some differences and motivate why I created FakeItEasy. Functionally there are no major differences between Moq and FakeItEasy. FakeItEasy has no “Verifiable” or “Expectations” it has assertions however, these … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)