Пример #1
0
        public void ShouldReturnNullProvider()
        {
            Assert.AreSame(NullProvider.GetInstance(), ProviderFactory.GetProvider(null));

            Assert.AreSame(NullProvider.GetInstance(), ProviderFactory.GetProvider("Dummy Provider"));

            Assert.AreSame(NullProvider.GetInstance(), ProviderFactory.GetProvider("http://wp.pl"));
        }
 protected PaymentProvider GetProvider()
 {
     return(NullProvider.GetInstance());
 }