Exemple #1
0
        public async void GetAll_RepositoryConsistsOf2Records_ShouldReturnListOf2Records()
        {
            // Arrange
            const int expected = 2;

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

            // Assert
            Assert.Equal(expected, list.Count);
        }
Exemple #2
0
        public async void GetAll_RepositoryIsEmpty_ShouldReturnEmptyList()
        {
            // Act
            var list = await _serviceEmptyRepo.GetAllAsync(httpRequest, HallId, StandId);

            // Assert
            Assert.Empty(list);
        }