コード例 #1
0
        public void Property_NOT_Match_Should_Call_UpdateDb_Method()
        {
            SetupDifferentPropertyModels();

            PropertyImportController controller = new PropertyImportController(_mockRepository.Object, _mockFileReader.Object);

            controller.ProcessFileImport("");

            _mockRepository.Verify(x => x.CreateNewProperty(It.IsAny<Property>()));
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: mercurysn/PropertyImporter
        static void Main(string[] args)
        {
            RegisterIocContainer();
            RegisterAutoMapper();

            //string testFilePath = @"C:\data\visual studio 2013\Projects\PropertyImporter\PropertyImporter.IntegrationTest\SampleFiles\properties.xml";
            string testFilePath = args[0];

            PropertyImportController controller = new PropertyImportController();

            controller.ProcessFileImport(testFilePath);
        }