Ejemplo n.º 1
0
 public void SetUp()
 {
     MockedPackagePublisher         = new Mock <IPackagePublisher>();
     MockedPackageUnpublisher       = new Mock <IPackageUnpublisher>();
     MockedWebFaultExceptionFactory = new Mock <IWebFaultExceptionCreator>();
     MockedServiceInputValidator    = new Mock <IServiceInputValidator>();
     PackagePublishingService       = new Server.PackagePublishingService(MockedPackagePublisher.Object, MockedPackageUnpublisher.Object,
                                                                          MockedWebFaultExceptionFactory.Object, MockedServiceInputValidator.Object, new Mock <ILogger>().Object);
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     MockedPackagePublisher = new Mock<IPackagePublisher>();
     MockedPackageUnpublisher = new Mock<IPackageUnpublisher>();
     MockedWebFaultExceptionFactory = new Mock<IWebFaultExceptionCreator>();
     MockedServiceInputValidator = new Mock<IServiceInputValidator>();
     PackagePublishingService = new Server.PackagePublishingService(MockedPackagePublisher.Object, MockedPackageUnpublisher.Object,
         MockedWebFaultExceptionFactory.Object, MockedServiceInputValidator.Object, new Mock<ILogger>().Object);
 }