public void Find_ReturnsNotFoundWhenCertificateDoesNotExist()
        {
            var sut = new CertificateFinder();
            var result = sut.Find(X509FindType.FindByThumbprint, "somethingthatdoesnotexist");

            Assert.False(result.Found);
        }
        public void Find_FindsAStoredCertificateByThumbprint()
        {
            var certificate = CreateCertificateIn(StoreName.My, StoreLocation.CurrentUser);
            var sut = new CertificateFinder();

            var result = sut.Find(X509FindType.FindByThumbprint, certificate.Thumbprint);

            Assert.True(result.Found);
        }
        public BindingConfigurer(Binding binding)
        {
            if (binding == null)
            {
                throw new ArgumentNullException("binding");
            }

            _binding = binding;

            CertificateFinder = new CertificateFinder();
        }