Apply suggestions from code review

This commit is contained in:
Andrew Camilleri
2021-10-04 10:44:09 +02:00
parent a3c2a9ac61
commit 88c925017d
2 changed files with 3 additions and 3 deletions

View File

@@ -2001,14 +2001,14 @@ namespace BTCPayServer.Tests
Assert.True(methods.TryGetValue(new PaymentMethodId("BTC", PaymentTypes.LightningLike).ToStringNormalized(), out var item));
var lightningNetworkPaymentMethodBaseData =Assert.IsType<JObject>(item.Data).ToObject<LightningNetworkPaymentMethodBaseData>();
Assert.Equal("###", lightningNetworkPaymentMethodBaseData.ConnectionString);
Assert.Equal("*NEED CanModifyStoreSettings PERMISSION TO VIEW*", lightningNetworkPaymentMethodBaseData.ConnectionString);
methods = await adminClient.GetStorePaymentMethods(store.Id);
Assert.True(methods.TryGetValue(new PaymentMethodId("BTC", PaymentTypes.LightningLike).ToStringNormalized(), out item));
lightningNetworkPaymentMethodBaseData =Assert.IsType<JObject>(item.Data).ToObject<LightningNetworkPaymentMethodBaseData>();
Assert.NotEqual("###", lightningNetworkPaymentMethodBaseData.ConnectionString);
Assert.NotEqual("*NEED CanModifyStoreSettings PERMISSION TO VIEW*", lightningNetworkPaymentMethodBaseData.ConnectionString);
}

View File

@@ -78,7 +78,7 @@ namespace BTCPayServer.Payments
canModifyStore
? lightningSupportedPaymentMethod.GetDisplayableConnectionString()
:
"###"
"*NEED CanModifyStoreSettings PERMISSION TO VIEW*"
};
return null;
}