I\'ve just started to implement unit tests (using xUnit and Moq) on an already established project of mine. The project extensively uses dependency injection via the unity container.
anybody knows how to moc开发者_运维问答k Url.Content(\"~\") ? (BTW: I\'m using Moq)You are referring to the Url property in the controllers, I presume, which is of type UrlHelper. The only way we hav
I\'m just starting to practice BDD using the GWT approach to the following code exert and just realised that I can\'t do the second test.
I am trying to write acceptance testing for an existing app. I\'ve run into a problem though when calling a web service that tells us if a person is, in short, in the office or not, what hours, and w
I am fairly new to TDD but have been using it for long enough to understand how to use mocks, stubs, depe开发者_StackOverflow中文版ndency injection, inversion of control to solve \'similar\' problems.
I have an interface ITransaction as follows: public interface ITransaction { DateTime EntryTime { get; }
I am trying to test this behavior --BLOGTableAdapter.GetBlogsByTitle(string title) is called and for on开发者_Go百科ce only
New to the world of TDD and I have soon find out that mocking at times is not as easy. We are using MOQ at work so I need to learn how to do this using moq
I\'m new to Castle Windsor and am just using the latest version. I\'ve created entries for my repositories which are working fine but I have one final dependency that I\'m passing into my controller.
We have a requirement to add an event reminder when a user enters their email address o开发者_运维技巧n an event page. Event is another domain object. Our initial thought was to create a Customer doma