Last post Jan 02, 2019 09:34 AM by Yuki Tao
Jan 02, 2019 05:56 AM|phmaspnet|LINK
Any one pls guide on how to do TDD realtime using mvc and continous integration
Jan 02, 2019 08:40 AM|DA924|LINK
Do you know what Test Driven Design is about that really has nothing to do with continuous integration? Do you know what Model View Controller a UI design pattern is really about?
Jan 02, 2019 09:34 AM|Yuki Tao|LINK
To create an MVC application by using unit test, follow the below steps:
Select "New Project" under the File menu in Visual Studio.
Go to "Installed Templates" and click on "Visual Basic" or "C#" as per the requirement and click on "Web."
Select the template of the Asp.net MVC Application.
Write the same as MvcContacts.
Click on OK.
As soon as the dialog box for Unit Test Project appears, ensure that "Yes" is selected and then select OK. The Visual Studio will create two solutions containing two projects, the first one as MvcContacts and the other named as MvcContacts.Tests.
Go the Test menu and select "Run" and then click on "All Tests of Solution." Results will be displayed in the Window of Test results. All tests are passed.
Now go to the project of MvcContacts.Tests and analyze the account controller classes for the test and the model. These classes describe the ways of creating the mock interfaces.
More details,you could refer to these links: