Skip to content

Commit 5cc8c96

Browse files
imaditiaggmddubey
authored andcommitted
[757] Aditi | Change property name to patientIdName
1 parent 4df7059 commit 5cc8c96

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/In.ProjectEKA.OtpService/Notification/NotificationProperties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ namespace In.ProjectEKA.OtpService.Notification
22
{
33
public class NotificationProperties
44
{
5-
public string IdName { get; }
5+
public string PatientIdName { get; }
66

7-
public NotificationProperties(string idName)
7+
public NotificationProperties(string patientIdName)
88
{
9-
IdName = idName;
9+
PatientIdName = patientIdName;
1010
}
1111
}
1212
}

src/In.ProjectEKA.OtpService/Notification/NotificationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private string GenerateConsentManagerIdRecoveredMessage(JToken notificationConte
4444
{
4545
var consentManagerIdContent = notificationContent.ToObject<ConsentManagerIdContent>();
4646
var message =
47-
$"The {notificationProperties.IdName} associated with your details is {consentManagerIdContent.ConsentManagerId}." +
47+
$"The {notificationProperties.PatientIdName} associated with your details is {consentManagerIdContent.ConsentManagerId}." +
4848
" To make sure that your account is secure, we request you to reset the password";
4949
return message;
5050
}

src/In.ProjectEKA.OtpService/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services)
2929
.AddDbContext<OtpContext>(options =>
3030
options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection")))
3131
.AddSingleton(new OtpProperties(Configuration.GetValue<int>("expiryInMinutes")))
32-
.AddSingleton(new NotificationProperties(Configuration.GetValue<string>("idName")))
32+
.AddSingleton(new NotificationProperties(Configuration.GetValue<string>("patientIdName")))
3333
.AddScoped<IOtpRepository, OtpRepository>()
3434
.AddScoped<IOtpGenerator, OtpGenerator>()
3535
.AddScoped<INotificationService, NotificationService>()

src/In.ProjectEKA.OtpService/appsettings.Development.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
"tokenApi": "c29tZVJhbmRvbVZhbHVlCg==",
3030
"SmsApi": "c29tZVJhbmRvbVZhbHVlCg=="
3131
},
32-
"idName" : "consent manager ID"
32+
"patientIdName" : "consent manager ID"
3333
}

src/In.ProjectEKA.OtpService/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
"tokenApi": "c29tZVJhbmRvbVZhbHVlCg==",
3737
"SmsApi": "c29tZVJhbmRvbVZhbHVlCg=="
3838
},
39-
"idName": "consent manager ID"
39+
"patientIdName": "consent manager ID"
4040
}

src/In.ProjectEKA.OtpService/appsettings.local.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
"tokenApi": "c29tZVJhbmRvbVZhbHVlCg==",
3030
"SmsApi": "c29tZVJhbmRvbVZhbHVlCg=="
3131
},
32-
"idName": "consent manager ID"
32+
"patientIdName": "consent manager ID"
3333
}

0 commit comments

Comments
 (0)