public Task CreateTopicPermissionAsync(TopicPermissionInfo topicPermissionInfo, CancellationToken cancellationToken = default(CancellationToken)) { Ensure.ArgumentNotNull(topicPermissionInfo, nameof(topicPermissionInfo)); return(PutAsync( $"topic-permissions/{SanitiseVhostName(topicPermissionInfo.GetVirtualHostName())}/{topicPermissionInfo.GetUserName()}", topicPermissionInfo, cancellationToken)); }
public void Should_return_the_correct_user_name() { topicPermissionInfo.GetUserName().ShouldEqual(user.Name); }