Example #1
0
        public void TestGetAppInfo_ThrowsInternalErrorDaoException()
        {
            var daoBuilder = new AppInfoDao();
            var dao        = daoBuilder.CreateFromFile("InexistentApplicationInfo.json");

            Assert.Throws <InternalErrorDaoException>(() => dao.GetAppInfo());
        }
Example #2
0
        public void TestGetAppInfo()
        {
            var expected = new ApplicationInfo()
            {
                Name    = "Evaluations μSerrvice",
                Id      = Guid.Parse("11111111-1111-1111-1111-111111111111"),
                Version = "0.0.0"
            };

            var daoBuilder = new AppInfoDao();
            var dao        = daoBuilder.CreateFromFile("ApplicationInfo.json");
            var actual     = dao.GetAppInfo();

            Assert.Equal(expected, actual);
        }