public void OnPost()
        {
            if (Files == null || Files.Length < 1)
            {
                AddCookie(Cookies.UploadFile.ToString(), true);
                return;
            }

            var ofxs = new List <Library.Model.Ofx>();

            var oldOfx = ofxManager.GetOfxFile();

            if (oldOfx != null)
            {
                ofxs.Add(oldOfx);
            }

            foreach (var file in Files)
            {
                var readFile  = file.OpenReadStream();
                var ofxReader = new OfxReader(readFile);
                var ofx       = ofxReader.Parse();

                ofxs.Add(ofx);
            }

            var mergedOfx = ofxManager.JoinOfxs(ofxs);

            ofxManager.SaveOfxFile(mergedOfx);

            AddCookie(Cookies.UploadFile.ToString(), true);
        }
        public void SaveAndGetImportation()
        {
            var joinedOfx = JoinOfxs();

            var result = ofxManager.SaveOfxFile(joinedOfx);

            Assert.Equal(string.Empty, result);

            var ofx = ofxManager.GetOfxFile();

            Assert.True(ofx != null);
        }