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); }
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()); }