Example #1
0
        public async Task GetApplicationInfoFromEf()
        {
            var applicationInfo = await _applicationInfoRepository.Get();

            applicationInfo.Should().NotBeNull();
            applicationInfo.NameApp.ToString().Should().Be("Example");
        }
        public async Task GetApplicationInfoFromEf()
        {
            var applicationInfoId = Guid.NewGuid();

            Dbconnection.Execute("INSERT INTO ApplicationInfo VALUES (@Id,'Example','0.1.0','example');", new { Id = applicationInfoId });

            var applicationInfo = await _applicationInfoRepository.Get();

            applicationInfo.Should().NotBeNull();
            applicationInfo.NameApp.ToString().Should().Be("Example");
        }