Ejemplo n.º 1
0
        public async Task DeleteSubmission_RemovesFromDb()
        {
            // Arrange
            var lCreatedEntity = await submissionRepository.Add(new Entities.SubmissionEntity {
                Notes = "test", SalonYear = EntitiesHelper.GetSalonYear(), Person = EntitiesHelper.GetPerson()
            });

            // Act
            await submissionRepository.Delete(lCreatedEntity);

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

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