Пример #1
0
        public async Task DeleteSalon_RemovesFromDb()
        {
            // Arrange
            var lCreatedEntity = await salonRepository.Add(new Entities.SalonEntity {
                Name = "test", Country = EntitiesHelper.GetCountry()
            });

            // Act
            await salonRepository.Delete(lCreatedEntity);

            // Assert
            var lResult = await salonRepository.GetById(lCreatedEntity.Id);

            Assert.IsNull(lResult);
            Assert.IsTrue(lCreatedEntity.Id > 0);
        }