Click here to Skip to main content
15,879,535 members
Articles / Operating Systems / Windows

MVP - A Basic Demonstration of its Power

Rate me:
Please Sign up or sign in to vote.
3.46/5 (4 votes)
31 Aug 2006CPOL5 min read 41K   381   14  
A basic demonstration on how to build a Unit Testable, Web and Windows Login UI
using System;
using System.Collections.Generic;
using System.Text;

namespace Heynemann.LoginSample.UI {
    /// <summary>
    /// Interface that represents an UI that can perform
    /// a login operation.
    /// </summary>
    public interface ILoginForm {

        /// <summary>
        /// Event that is to be fired upon login button click.
        /// </summary>
        event EventHandler<EventArgs> LoginButtonClick;

        /// <summary>
        /// The username that is to be used for logging-in.
        /// </summary>
        string Username {
            get;
            set;
        }

        /// <summary>
        /// The password that is to be used for logging-in.
        /// </summary>
        string Password {
            get;
            set;
        }

        /// <summary>
        /// Indicates whether the login completed succesfully.
        /// </summary>
        bool IsLoggedIn {
            get;
            set;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
Bernardo Heynemann is a senior developer at ThoughtWorks UK in London. He is really into Visual Studio 2008, LINQ and ASP.Net MVC. He's also chairman of Stormwind Project (http://www.stormwindproject.org). He can be found at his blog at http://blogs.manicprogrammer.com/heynemann.

Comments and Discussions