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>())); }
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); }