public void TestCleanup()
        {
            _updatePackageFactory = null;

            _serverSettings = null;
            _updatePackageFactoryAccessMock = null;
        }
        public void TestInitialize()
        {
            TestCleanup();

            _serverSettings = new ServerSettings();
            _serverSettings.Type = GetDataMethod.LocalFile;
            _serverSettings.Path = "UpdatePackageFactoryTest_CreateDefaultCommand";

            _updatePackageFactoryAccessMock = new UpdatePackageAccessFactoryMock();
            _updatePackageFactoryAccessMock.CreateLocalFileAccess.Add(_serverSettings.Path, new LocalFileAccess(_serverSettings.Path));

            _htmlGetterMock = new Mock<IHtmlGetter>();

            _updatePackageFactory = new UpdatePackageFactory(_updatePackageFactoryAccessMock, _htmlGetterMock.Object);
        }
 public ConfigurationConverter(IUpdatePackageFactory updatePackageAccessFactory, INotificationReceiverFactory notificationReceiverFactory, ISendMail sendMail)
 {
     _updatePackageFactory = updatePackageAccessFactory;
     _notificationReceiverFactory = notificationReceiverFactory;
     _sendMail = sendMail;
 }
        public void TestCleanup()
        {
            _configurationConverter = null;

            _updatePackageFactoryMock = null;
            _notificationReceiverFactoryMock = null;
            _sendMailMock = null;
        }
        public void TestInitialize()
        {
            TestCleanup();

            _updatePackageFactoryMock = new UpdatePackageFactoryMock();

            _notificationReceiverFactoryMock = new NotificationReceiverFactoryMock();

            _configurationConverter = new ConfigurationConverter(_updatePackageFactoryMock, _notificationReceiverFactoryMock, _sendMailMock);
        }