Пример #1
0
        public async Task GetAll_WhenEventsFound_ShouldReturnAllEvents()
        {
            //Arrange
            _repository.Setup(p => p.Events.GetAllAsync()).ReturnsAsync(_events);
            var processor = new EventProcessor(_repository.Object);

            //Act
            var response = await processor.GetAll(null);

            //Assert
            Assert.NotEmpty(response);
        }