From 3e7b41e712521ace2a4ef8798a6c236128cd5bac Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Sat, 17 Nov 2018 20:24:23 +0100 Subject: [PATCH] Refactor code. --- Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs b/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs index 60ce27d7..563f3430 100644 --- a/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs +++ b/Tests/MQTTnet.TestApp.NetCore/ManagedClientTest.cs @@ -61,13 +61,7 @@ namespace MQTTnet.TestApp.NetCore public class RandomPassword : IMqttClientCredentials { - public string Password - { - get - { - return Guid.NewGuid().ToString(); // The random password. - } - } + public string Password => Guid.NewGuid().ToString(); public string Username => "the_static_user"; }