Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unit Testing project to MVC Template #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DotNetNuclear
Copy link

Hi Joe,

As I was putting together documentation for MVC development at Will Morgenweck's request, it became clear that documenting unit testing was going to be confusing unless we made some changes to the Mvc project template.

This pull request consists of the following:

  • The Mvc template will now create solution with two projects: the module project and a unit test project
  • The Unit Test project will have a sample unit test and mock repository to give developers guidance. It also builds and runs against the module project right out of the box.
  • Changes to the ItemController.cs in order to support injecting a mock ItemManager and testing environment variables such as ModuleContext to support unit test.

Any questions, let me know. scott@dotnetnuclear.com

Thanks!
Scott

@amarjit-dhunna
Copy link
Contributor

@DotNetNuclear The template should be working from end to end but if I create module from your template and install it, it doesn't work as expected. I see errors while install and after dropping it on page as well.

Kindly fix the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants