public RemoteRepositoryLocationConverter(
     IRemoteRepositoryLocationTypeProvider remoteRepositoryLocationTypeProvider,
     IStringlyTypedUrlOperator stringlyTypedUrlOperator)
 {
     this.RemoteRepositoryLocationTypeProvider = remoteRepositoryLocationTypeProvider;
     this.StringlyTypedUrlOperator             = stringlyTypedUrlOperator;
 }
        public static async Task <bool> IsLocationType(this IRemoteRepositoryLocationTypeProvider remoteRepositoryLocationTypeProvider,
                                                       string remoteRepositoryLocation, RemoteRepositoryLocationType remoteRepositoryLocationType)
        {
            var actualRemoteRepositoryLocationType = await remoteRepositoryLocationTypeProvider.GetRemoteRepositoryLocationType(remoteRepositoryLocation);

            var isLocationType = actualRemoteRepositoryLocationType == remoteRepositoryLocationType;

            return(isLocationType);
        }