コード例 #1
0
        public async Task GetAll(int index, string expected)
        {
            //arrange
            //Done in constructor

            var perfLogAssemblyRepository = new PerfLogAssemblyRepository(_context, PollyTestFactory.CreateAsyncRetryPolicy());
            //act
            var value = await perfLogAssemblyRepository.GetAll();

            //assert
            Assert.Equal(expected, value[index].Assembly);
        }
コード例 #2
0
        public async Task GetAll_Count()
        {
            //arrange
            //Done in constructor

            var perfLogAssemblyRepository = new PerfLogAssemblyRepository(_context, PollyTestFactory.CreateAsyncRetryPolicy());
            //act
            var value = await perfLogAssemblyRepository.GetAll();

            //assert
            Assert.Equal(3, value.Count());
        }