public void GetTodaysBuildSession_FileExists_ReadOnlyThisFile()
        {
            var buildFileManager = new BuildFileManager("../../BuildSessionFiles", _dateTimeProviderMock);

            var buildSessions = buildFileManager.GetTodaysBuildSession();

            buildSessions.StartTime.Date.ShouldBe(now.Date);
        }
        public void GetTodaysBuildSession_FileDoesNotExist_CreatesNewSession()
        {
            var veryOldDate = new DateTime(1980, 1, 1, 1, 1, 1);
            var veryOldDateTimeProviderMock = new DateTimeProviderMock(veryOldDate);
            var buildFileManager            = new BuildFileManager(BuildSessionFolder, veryOldDateTimeProviderMock);

            var buildSessions = buildFileManager.GetTodaysBuildSession();

            buildSessions.StartTime.Date.ShouldBe(veryOldDate.Date);
        }
Beispiel #3
0
 private void LoadAndInitializeBuildSession()
 {
     BuildSession = _buildFileManager.GetTodaysBuildSession();
 }