public Boolean CanEdit(ProfileEditView view)
        {
            Boolean isValid = IsUniqueUsername(CurrentAccountId, view.Username);
            isValid &= IsCorrectPassword(CurrentAccountId, view.Password);
            isValid &= IsUniqueEmail(CurrentAccountId, view.Email);
            isValid &= ModelState.IsValid;

            return isValid;
        }
        public ProfileControllerTests()
        {
            validator = Substitute.For<IAccountValidator>();
            service = Substitute.For<IAccountService>();

            profileDelete = ObjectFactory.CreateProfileDeleteView();
            profileEdit = ObjectFactory.CreateProfileEditView();

            controller = Substitute.ForPartsOf<ProfileController>(validator, service);
            ReturnCurrentAccountId(controller, "Test");
        }