GetOne() public method

Get one user. User API key usage permitted. In this case, it can only be used to get currently associated user's data. All parameters are optional. The user_id/user_name parameter means that one can use either one of them - user_id or user_name.
public GetOne ( string userId = null, string userName = null ) : Task
userId string User id. User_id is automatically filled when used with User API key.
userName string User name.
return Task
        public async Task GetOne_ByUserName_GetsUserObject(UserSyncanoClient client)
        {
            //when
            var result = await client.GetOne(userName: TestData.UserName);

            //then
            result.ShouldNotBeNull();
            result.Id.ShouldEqual(TestData.UserId);
            result.Name.ShouldEqual(TestData.UserName);
        }
        public async Task GetOne_GetsUserObject_OverHttp()
        {
            //given
            var httpClient =
                new UserSyncanoClient(new SyncanoHttpClient(TestData.InstanceName, TestData.UserApiKey));
            await httpClient.Login(TestData.UserName, TestData.UserPassword);

            //when
            var result = await httpClient.GetOne(userName:TestData.UserName);

            //then
            result.ShouldNotBeNull();
        }