Exemplo n.º 1
0
        public void HistoryCanGetLatest()
        {
            //Arrange
            var sut = new DacHistory(new System.IO.DirectoryInfo(WorkingDir));

            //Act
            var latest = sut.GetLatest();

            //Assert
            Assert.Equal("1.2.0.1", latest.Version.ToString());
        }
Exemplo n.º 2
0
        public void HistoryCanGetHistorySinceSpecificVersion()
        {
            //Arrange
            var sut = new DacHistory(new System.IO.DirectoryInfo(WorkingDir));
            var v = new Version(1, 0, 0, 1);
            //Act

            var history = sut.GetHistory(v);

            //Assert
            Assert.Equal(2, history.Count);

            foreach (var item in history)
            {
                Assert.True(item.Version > v);
            }
        }
Exemplo n.º 3
0
 public DeployApp(IProvideDacVersion versionProvider, DacHistory historyProvider)
 {
     this.logBuilder = new StringBuilder();
     this.versionProvider = versionProvider;
     this.historyProvider = historyProvider;
 }