コード例 #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();
        }
コード例 #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();
        }
コード例 #3
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();
        }
コード例 #4
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();
        }
コード例 #5
0
 public void ImportData()
 {
     _dataImportService.ImportData();
 }