public async Task Should_Import()
        {
            var resource = EmbededResourceHelper.Get("valid.csv");

            var productManager = MockHelper.GetProductManager();
            var result         = await productManager.ImportCsvAsync(resource, false);

            Assert.True(result.Success);
            Assert.NotNull(result.Result);
        }
        public async Task Should_NotImport_InvalidHeader2()
        {
            var resource = EmbededResourceHelper.Get("invalid2.csv");

            var productManager = MockHelper.GetProductManager();
            var result         = await productManager.ImportCsvAsync(resource, false);

            Assert.False(result.Success);
            Assert.Null(result.Result);
            Assert.NotNull(result.Exception);
        }
        public async Task Should_NotImport_NotCsvFile()
        {
            var resource = EmbededResourceHelper.Get("notacsv.jpg");

            var productManager = MockHelper.GetProductManager();
            var result         = await productManager.ImportCsvAsync(resource, false);

            Assert.False(result.Success);
            Assert.Null(result.Result);
            Assert.NotNull(result.Exception);
        }
        public async Task Should_GetSummary()
        {
            var resource = EmbededResourceHelper.Get("valid.csv");

            var productManager = MockHelper.GetProductManager(false);
            var result         = await productManager.ImportCsvAsync(resource, false);

            Assert.True(result.Success);
            Assert.NotNull(result.Result);

            var summaryResult = productManager.GetSummary(result.Result);

            Assert.True(summaryResult.Success);
            Assert.NotNull(summaryResult.Result);
            Assert.Equal(10, summaryResult.Result.CreateRecordCount);
            Assert.Equal(0, summaryResult.Result.UpdateRecordCount);
            Assert.Equal(0, summaryResult.Result.DeleteRecordCount);
            Assert.Equal(62, summaryResult.Result.InvalidRecordCount);
        }