Beispiel #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);
 }
 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);
 }