Skip to content

Commit

Permalink
[757] Aditi | Change property name to patientIdName
Browse files Browse the repository at this point in the history
  • Loading branch information
imaditiagg authored and mddubey committed Sep 30, 2020
1 parent 4df7059 commit 5cc8c96
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ namespace In.ProjectEKA.OtpService.Notification
{
public class NotificationProperties
{
public string IdName { get; }
public string PatientIdName { get; }

public NotificationProperties(string idName)
public NotificationProperties(string patientIdName)
{
IdName = idName;
PatientIdName = patientIdName;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private string GenerateConsentManagerIdRecoveredMessage(JToken notificationConte
{
var consentManagerIdContent = notificationContent.ToObject<ConsentManagerIdContent>();
var message =
$"The {notificationProperties.IdName} associated with your details is {consentManagerIdContent.ConsentManagerId}." +
$"The {notificationProperties.PatientIdName} associated with your details is {consentManagerIdContent.ConsentManagerId}." +
" To make sure that your account is secure, we request you to reset the password";
return message;
}
Expand Down
2 changes: 1 addition & 1 deletion src/In.ProjectEKA.OtpService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services)
.AddDbContext<OtpContext>(options =>
options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection")))
.AddSingleton(new OtpProperties(Configuration.GetValue<int>("expiryInMinutes")))
.AddSingleton(new NotificationProperties(Configuration.GetValue<string>("idName")))
.AddSingleton(new NotificationProperties(Configuration.GetValue<string>("patientIdName")))
.AddScoped<IOtpRepository, OtpRepository>()
.AddScoped<IOtpGenerator, OtpGenerator>()
.AddScoped<INotificationService, NotificationService>()
Expand Down
2 changes: 1 addition & 1 deletion src/In.ProjectEKA.OtpService/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"tokenApi": "c29tZVJhbmRvbVZhbHVlCg==",
"SmsApi": "c29tZVJhbmRvbVZhbHVlCg=="
},
"idName" : "consent manager ID"
"patientIdName" : "consent manager ID"
}
2 changes: 1 addition & 1 deletion src/In.ProjectEKA.OtpService/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"tokenApi": "c29tZVJhbmRvbVZhbHVlCg==",
"SmsApi": "c29tZVJhbmRvbVZhbHVlCg=="
},
"idName": "consent manager ID"
"patientIdName": "consent manager ID"
}
2 changes: 1 addition & 1 deletion src/In.ProjectEKA.OtpService/appsettings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"tokenApi": "c29tZVJhbmRvbVZhbHVlCg==",
"SmsApi": "c29tZVJhbmRvbVZhbHVlCg=="
},
"idName": "consent manager ID"
"patientIdName": "consent manager ID"
}

0 comments on commit 5cc8c96

Please sign in to comment.