/BankApp.Net

Primary LanguageJavaScript

BankApp.net

This Workshop lab assumes you have an IDE and runtime that supports .Net Framework.
Visual studio on Windows is the most obvious candidate for this.
The simplest thing for Mac users is to run a Windows VM on the Mac or in a cloud provider

Windows Users

The project is currently bound to .Net 4.7 Framework with the expectation that teams will be running Windows 10. The solution can probably be targeted at earlier versions of .Net.

  • Install Visual Studio 2017 (any version)
    • The following installation workloads are required: This will require 6.5GB of disk space if using VS 2017 Community
      • Verify that .Net 4.7 is one of the packages being installed.
      • .Net desktop development
      • ASP.net and web development
        • This is to support BankApp and BankApp.Tests. You can remove this dependency if you delete those projects.
  • Install the following Visual Studio extensions. You can try and install these from "tools and options" but I had to download this extension and install it from outside VS2017 community.

Mac Users

  • TBD

Projects

The projects are organized to segregate the code from unit tests as we would in a real project. Some people, for class, will just do all the work in a single project

Exercises

Class library, MSTest, moq and Specflow test projects for the HelloWorld, StringSet and any other TDD class exercises other than "Bank"

  • Exercises: StringSet and HelloWorld exercies classes
    • Files with example in the name show possible solutions
  • Exercises.Test: StringSet and HelloWorld test classes
    • Files with example in the name show possible solutions
  • Exercises.BDD.Test: SpecFlow feature and step files executed with MSTest
    • Files with example in the name show possible solutions

BankLibrary

Class library and test projects for the Banking class exercise.

  • BankLibrary: Banking exercise classes
    • Files with example in the name show possible solutions
  • BankLibrary.Test: MSTest test classes
    • Files with example in the name show possible solutions
  • BankLibrary.BDD.Test: Specflow feature and step files executed with MSTest
    • Files with example in the name show possible solutions

Selenium

A place to put Selenium based web test exercises.

  • Selenium.Test: Specflow feature and step files executed with MSTest
    • BDDExample... demonstrates SpecFlow style BDD
    • ExampleWebSearchTest demonstrates selenium tests directly using the API
    • PoPExample... Demonstrate one style of PageObjectPattern

BankApp

The default ASP.Net Bank App demo. This is included in case we wish to deploy an application into the cloud. It is not tied to the other projects.

  • BankApp: ASP.Net web application
  • BankApp.Tests: MSTest classes
    • This project contains no example test solutions

Troubleshooting

  1. Problem An exception occurred while invoking executor 'executor://mstestadapter/v2': Constructor on type 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.UnitTestRunner' not found. Solution Clear the Cache. See: Stack Overflow
  2. Problem Itellisense in a test project for project doesn't display info for any classes residing in the source project. Solution Remove the source project from the test project's list of references. Then re-add the source project reference.
  3. Problem Itellisense in a test project for project doesn't display info for any MSTestclasses like Assert. Solution Remove the source project from the test project's list of references. Then re-add the source project reference.

Links