public void ConstructorSetsPropertiesToDefaultValues()
        {
            // Act
            AccountController controller = new AccountController();

            // Assert
            Assert.NotNull(controller.FormsAuth);
            Assert.NotNull(controller.MembershipService);
        }
 private static AccountController GetAccountController()
 {
     IFormsAuthentication formsAuth = new MockFormsAuthenticationService();
     MembershipProvider membershipProvider = new MockMembershipProvider();
     AccountMembershipService membershipService = new AccountMembershipService(membershipProvider);
     AccountController controller = new AccountController(formsAuth, membershipService);
     ControllerContext controllerContext = new ControllerContext(new MockHttpContext(), new RouteData(), controller);
     controller.ControllerContext = controllerContext;
     return controller;
 }
        public void ConstructorSetsProperties()
        {
            // Arrange
            IFormsAuthentication formsAuth = new MockFormsAuthenticationService();
            IMembershipService membershipService = new AccountMembershipService();

            // Act
            AccountController controller = new AccountController(formsAuth, membershipService);

            // Assert
            Assert.Equal(formsAuth, controller.FormsAuth);
            Assert.Equal(membershipService, controller.MembershipService);
        }