I will briefly go through the testing pyramid and tell about the unit, integration, automaton testing approaches for .NET web applications with some code examples.