Esempio n. 1
0
        public async void GetAll_RepositoryIsEmpty_ShouldReturnEmptyList()
        {
            // Act
            var list = await _serviceEmptyRepo.GetAllAsync(httpRequest);

            // Assert
            Assert.Empty(list);
        }
Esempio n. 2
0
        public async void GetAll_RepositoryConsistsOf2Records_ShouldReturnListOf2Records()
        {
            // Arrange
            const int expected = 2;

            // Act
            var list = await _service.GetAllAsync(httpRequest);

            // Assert
            Assert.Equal(expected, list.Count);
        }