/// <summary>
        /// Generates a new version number for assignment.
        /// </summary>
        private long GetNewVersionNumber(GenerateScriptCommandArgs args)
        {
            var factory = new VersionStrategyFactory(_configurationManager);
            IVersionStrategy strategy = factory.GetStrategy();
            long             version  = strategy.GetNewVersionNumber(this, args);

            return(version);
        }
        /// <summary>
        /// Generates a new version number for assignment.
        /// </summary>
        private long GetNewVersionNumber()
        {
            var factory = new VersionStrategyFactory(_configurationManager);
            IVersionStrategy strategy = factory.GetStrategy();
            long             version  = strategy.GetNewVersionNumber(this);

            return(version);
        }
 /// <summary>
 /// Generates a new version number for assignment.
 /// </summary>
 private long GetNewVersionNumber()
 {
     var factory = new VersionStrategyFactory(_configurationManager);
     IVersionStrategy strategy = factory.GetStrategy();
     long version = strategy.GetNewVersionNumber(this);
     return version;
 }
 public void Setup()
 {
     _configManager = new InMemoryConfigurationManager();
     _subject = new VersionStrategyFactory(_configManager);
 }