public UserPasswordResetRequestData Update(UserPasswordResetRequestData data) { var user = MockDb.Users .Where(row => row.Email == data.Email) .Single(); user.Token = data.Token; user.TokenExpirationDate = data.TokenExpirationDate; return(data); }
public UserPasswordResetRequestData Update(UserPasswordResetRequestData data) { var user = MockDb.Users .Where(row => row.Email == data.Email) .Single(); user.Token = data.Token; user.TokenExpirationDate = data.TokenExpirationDate; return data; }
public UserPasswordResetRequestData Fetch(UserPasswordResetRequestDataCriteria criteria) { var data = MockDb.Users .Where(row => row.Email == criteria.Email) .Single(); var result = new UserPasswordResetRequestData(); result.Email = data.Email; result.Token = data.Token; result.TokenExpirationDate = data.TokenExpirationDate; return(result); }
public UserPasswordResetRequestData Fetch(UserPasswordResetRequestDataCriteria criteria) { var data = MockDb.Users .Where(row => row.Email == criteria.Email) .Single(); var result = new UserPasswordResetRequestData(); result.Email = data.Email; result.Token = data.Token; result.TokenExpirationDate = data.TokenExpirationDate; return result; }
protected override void DataPortal_Update() { using (var dalManager = DataFactoryManager.GetManager()) { var dalFactory = dalManager.GetProvider <IUserPasswordResetRequestDataFactory>(); var data = new UserPasswordResetRequestData(); using (this.BypassPropertyChecks) { this.Update(data); data = dalFactory.Update(data); this.Success = true; } } }
protected void Update(UserPasswordResetRequestData data) { data.Email = this.Email; data.Token = this.Token; data.TokenExpirationDate = this.TokenExpirationDate; }
protected void Fetch(UserPasswordResetRequestData data) { this.Email = data.Email; this.Token = data.Token; this.TokenExpirationDate = data.TokenExpirationDate; }