Using Specflow to access an external server in projects based on .NET MVC 3

I want to do ATDD with TDD and DDD, and I want to first detect the behavior (using mocks) of the domain model (e-commerce in my example). You can imagine that when split into DDD, we can have application services that invoke domain services and repositories or other services and non-business logic code, only tasks related to the application) Please use the following text, which I am trying to understand:

HOW TO USE MOSCOW TO DISABLE THE BEHAVIOR OF MY ECONOMIC DOMAIN AND THEN FIND MORE BOUNDARY DEVELOPMENT TDD TO IMPLEMENT THE DESIRED BEHAVIOR.

This is an excerpt from another question (as an answer).

BDD, what function?

β€œSelect any task that you need to implement, open an empty text file and try to explain the behavior using simple sentences. Each sentence should begin with one of three keywords: given, when and then. Using your favorite structure BDD code that will analyze these proposals and stimulate the application to enter the initial state (given), execute some commands (when) and approve the transition state (then). The application code can start with simple mocks. built the code and increased your application with a higher level of confidence and quality. "

Can anyone give some concrete examples of starting using mocks (RhinoMock, Moq) using two approaches:

1. ATDD transmission through controller actions and
2. Using the Watin driver (page objects, WatriN MVCContrib extensions) or Selenium.

If I use no. 2. Will I be able to see some sample data when I go to some pages and do some actions ("When" I do something: I’m moving around, posting data) and checking the results of these actions.

To fully understand the essence of my question, please read the following: http://jockeholm.wordpress.com/2010/02/14/combining-tddbdd-with-ddd/ Especially steps 3. and 4.

I will pass the text for step 3:

3. [BDD / ATDD] For each test case, implement an example of an executable that fails because this behavior is not supported by the system. Then use external development with extensive use of mock objects to determine the behavior specified in the executable example.

Thanks Rad

+4
source share

All Articles