Exemple #1
0
        public void Then_ValidateEntity_Should_Throw_Exception_If_EntityXmlFileName_Is_Missing()
        {
            //Arrange
            entity.Setup(x => x.GetXmlFileName()).Returns(string.Empty);

            dataImportService =
                new DataImportService <TagEntity>(databaseRepository.Object, fileRepository.Object, entity.Object);

            //Act
            dataImportService.ImportData();
        }
Exemple #2
0
        public void Then_ValidateEntity_Should_Throw_Exception_If_EntityXmlAttributes_Is_Null()
        {
            //Arrange
            entity.Setup(x => x.GetXmlAttributes()).Returns((List <string>)null);

            dataImportService =
                new DataImportService <TagEntity>(databaseRepository.Object, fileRepository.Object, entity.Object);

            //Act
            dataImportService.ImportData();
        }
        public void Then_ValidateEntity_Should_Throw_Exception_If_EntityXmlFileName_Is_Missing()
        {
            //Arrange
             entity.Setup(x => x.GetXmlFileName()).Returns(string.Empty);

             dataImportService =
            new DataImportService<TagEntity>(databaseRepository.Object, fileRepository.Object, entity.Object);

             //Act
             dataImportService.ImportData();
        }
        public void Then_ValidateEntity_Should_Throw_Exception_If_EntityXmlAttributes_Is_Null()
        {
            //Arrange
             entity.Setup(x => x.GetXmlAttributes()).Returns((List<string>)null);

             dataImportService =
            new DataImportService<TagEntity>(databaseRepository.Object, fileRepository.Object, entity.Object);

             //Act
             dataImportService.ImportData();
        }
Exemple #5
0
 public void ImportData()
 {
     _dataImportService.ImportData();
 }