Beispiel #1
0
        public async Task Should_Remove_Item_If_It_Exists()
        {
            //Arrange
            const int id       = 100;
            var       festival = new Festival
            {
                Name        = "Test",
                Description = "TestDescription",
                Id          = id
            };
            await _repository.AddFestival(festival);

            //Act
            await _service.RemoveFestival(id);

            //Assert
            Assert.IsFalse(await _repository.IsExist(id));
        }
 public async Task <Festival> AddFestival(Festival festival)
 {
     return(await _repository.AddFestival(festival));
 }