protected void Page_Load(object sender, EventArgs e) { YearLiteral.Text = DateTime.Today.Year.ToString(); ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumberLiteral.Text = systemInformationRepository.GetSystemVersionNumber(); }
public void GetSystemVersionNumberReturnsDLLVersionOfCoreProject() { ISystemInformationFactory systemInformationFactory = new SystemInformationFactory(); ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); string assemblyVersionNumber = Assembly.GetAssembly(typeof(Falcon.App.Core.Domain.DomainObjectBase)).GetName().Version.ToString(); string expectedVersionNumber = systemInformationFactory.GetFormattedVersionString(assemblyVersionNumber); string actualVersionNumber = systemInformationRepository.GetSystemVersionNumber(); Assert.IsNotNull(actualVersionNumber); Assert.AreEqual(expectedVersionNumber, actualVersionNumber); Debug.Print(actualVersionNumber); }
protected void Page_Load(object sender, EventArgs e) { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); SystemVersionLiteral.Text = systemInformationRepository.GetSystemVersionNumber(); }