public void CreateAccount()
        {
            //Arrange
            var id          = 12;
            var userId      = 5;
            var accountType = 1;
            var balance     = 15.50M;
            var createDate  = new DateTime(2019, 12, 25);
            var isClose     = false;
            //set up mock
            var transferableLogger = new Mock <ILogger <TransferablesController> >();
            var accountMock        = new AccountRepoTest();
            var accountTypeMock    = new AccountTypeRepo();
            var newAccount         = new Account()
            {
                Id = id, UserId = userId, AccountTypeId = accountType, Balance = balance, CreateDate = createDate, IsClosed = isClose
            };
            // Generate controller
            var testTransferablesController = new TransferablesController(accountMock, accountTypeMock, transferableLogger.Object);
            //Act
            var acctResponse = testTransferablesController.Post(newAccount);
            var acct         = acctResponse.Result.Result as CreatedAtActionResult;
            var crAcct       = acct.Value as Account;

            //Assert
            Assert.AreSame(newAccount, crAcct);
            Assert.AreEqual(userId, crAcct.UserId);
            Assert.AreEqual(accountType, crAcct.AccountTypeId);
            Assert.AreEqual(createDate, crAcct.CreateDate);
            Assert.AreEqual(isClose, crAcct.IsClosed);
        }
        public void CloseAccount_Funds()
        {
            //Arrange
            var id                 = 2;
            var isClose            = false; //should be false because funds in account
            var transferableLogger = new Mock <ILogger <TransferablesController> >();
            var accountLogger      = new Mock <ILogger <AccountsController> >();
            var accountMock        = new AccountRepoTest();
            var accountTypeMock    = new AccountTypeRepo();
            // Generate controller
            var testAccountController       = new AccountsController(accountMock, accountLogger.Object);
            var testTransferablesController = new TransferablesController(accountMock, accountTypeMock, transferableLogger.Object);
            //Act
            var acctResponse = testTransferablesController.Close(id);

            acctResponse.Wait(500);
            var response = testAccountController.GetAccountDetailsByAccountID(id);

            response.Wait(500);
            var responseResult = response.Result.Result;
            var acct           = (responseResult as OkObjectResult).Value as Account;

            //Assert
            Assert.AreEqual(isClose, acct.IsClosed);
            Assert.AreEqual(id, acct.Id);
        }
        public void WithdrawAccountChecking_Overdraft()
        {
            //Arrange
            var balanceAfter       = 300M; //Balance of account with id 2 is 300 before deposit
            var amount             = 400;
            var id                 = 2;
            var transferableLogger = new Mock <ILogger <TransferablesController> >();
            var accountLogger      = new Mock <ILogger <AccountsController> >();

            var accountMock     = new AccountRepoTest();
            var accountTypeMock = new AccountTypeRepo();
            // Generate controller
            var testAccountController       = new AccountsController(accountMock, accountLogger.Object);
            var testTransferablesController = new TransferablesController(accountMock, accountTypeMock, transferableLogger.Object);
            //Act
            var acctResponse = testTransferablesController.Withdraw(id, amount);

            acctResponse.Wait(500);
            var response = testAccountController.GetAccountDetailsByAccountID(id);

            response.Wait(500);
            var responseResult = response.Result.Result;
            var acct           = (responseResult as OkObjectResult).Value as Account;

            //Assert
            Assert.AreEqual(balanceAfter, acct.Balance);
            Assert.AreEqual(id, acct.Id);
        }
        public void DepositAccount_Closed() //deposit should fail account is closed
        {
            //Arrange
            var balanceAfter       = 0M; //Balance of account with id 6 is 0 after deposit
            var amount             = 100;
            var id                 = 6;
            var transferableLogger = new Mock <ILogger <TransferablesController> >();
            var accountLogger      = new Mock <ILogger <AccountsController> >();

            var accountMock     = new AccountRepoTest();
            var accountTypeMock = new AccountTypeRepo();
            // Generate controller
            var testAccountController       = new AccountsController(accountMock, accountLogger.Object);
            var testTransferablesController = new TransferablesController(accountMock, accountTypeMock, transferableLogger.Object);
            //Act
            var acctResponse = testTransferablesController.Deposit(id, amount);

            acctResponse.Wait(500);
            var response = testAccountController.GetAccountDetailsByAccountID(id);

            response.Wait(500);
            var responseResult = response.Result.Result;
            var acct           = (responseResult as OkObjectResult).Value as Account;

            //Assert
            Assert.IsInstanceOfType(acctResponse.Result, typeof(NotFoundObjectResult), "HTTP Response NOT 404 Not Found!");
            Assert.AreEqual((acctResponse.Result as NotFoundObjectResult).Value, 6, string.Format("Return value not {0}", (-1).ToString()));

            Assert.AreEqual(balanceAfter, acct.Balance);
            Assert.AreEqual(id, acct.Id);
        }
        public void GetAccountTypeByName()
        {
            #region Assign
            AccountTypeRepo           testRepo       = new AccountTypeRepo();
            AccountTypesApiController testController = new AccountTypesApiController(testRepo, testLogger);
            #endregion

            foreach (AccountType element in test_accountTypes)
            {
                #region Act
                var taskReturn = testController.GetAccountTypeByName(element.Name);
                var taskResult = taskReturn.Result.Value;
                #endregion

                #region Assert
                Assert.AreEqual(element.Id, taskResult.Id);
                Assert.AreEqual(element.Name, taskResult.Name);
                Assert.AreEqual(element.InterestRate, taskResult.InterestRate);
                #endregion
            }
        }
        public void GetAccountTypes()
        {
            #region Assign
            AccountTypeRepo           testRepo       = new AccountTypeRepo();
            AccountTypesApiController testController = new AccountTypesApiController(testRepo, testLogger);
            #endregion

            #region Act
            var taskReturn  = testController.GetAccountTypes();
            var taskResults = taskReturn.Result.Value.ToList();
            #endregion

            #region Assert
            foreach (AccountType element in taskResults)
            {
                Assert.AreEqual(test_accountTypes[taskResults.IndexOf(element)].Id, element.Id);
                Assert.AreEqual(test_accountTypes[taskResults.IndexOf(element)].Name, element.Name);
                Assert.AreEqual(test_accountTypes[taskResults.IndexOf(element)].InterestRate, element.InterestRate);
            }
            #endregion
        }
        public void AddAccountType()
        {
            #region Assign
            AccountTypeRepo           testRepo       = new AccountTypeRepo();
            AccountTypesApiController testController = new AccountTypesApiController(testRepo, testLogger);
            #endregion

            #region Act
            var task = testRepo.AddAccountType(new AccountType {
                Id = 5, Name = "DankMemes", InterestRate = 69M
            });
            task.Wait();

            AccountType newAccount = testRepo.GetAccountTypeById(5).Result;
            #endregion

            #region Assert
            Assert.AreEqual(5, newAccount.Id);
            Assert.AreEqual("DankMemes", newAccount.Name);
            Assert.AreEqual(69M, newAccount.InterestRate);
            #endregion
        }
        public void TransferFromCD() //should fail to transfer
        {
            //Arrange
            var balanceAfterFromAccount = 600M; //Balance of account with id 4 is 600 before transfer
            var balanceAfterToAccount   = 300M; //Balance of account with id 2 is 300 before transfer
            var amount             = 600;
            var idFrom             = 4;         //CD account
            var idTo               = 2;         //checking account
            var transferableLogger = new Mock <ILogger <TransferablesController> >();
            var accountLogger      = new Mock <ILogger <AccountsController> >();

            var accountMock     = new AccountRepoTest();
            var accountTypeMock = new AccountTypeRepo();
            // Generate controller
            var testAccountController       = new AccountsController(accountMock, accountLogger.Object);
            var testTransferablesController = new TransferablesController(accountMock, accountTypeMock, transferableLogger.Object);
            //Act
            var acctResponse = testTransferablesController.Transfer(idFrom, idTo, amount);

            acctResponse.Wait(500);
            var responseFrom = testAccountController.GetAccountDetailsByAccountID(idFrom);

            responseFrom.Wait(500);
            var responseTo = testAccountController.GetAccountDetailsByAccountID(idTo);

            responseTo.Wait(500);

            var responseResult  = responseFrom.Result.Result;
            var responseResult2 = responseTo.Result.Result;
            var acctFrom        = (responseResult as OkObjectResult).Value as Account;
            var acctTo          = (responseResult2 as OkObjectResult).Value as Account;

            //Assert
            Assert.AreEqual(balanceAfterFromAccount, acctFrom.Balance);
            Assert.AreEqual(idFrom, acctFrom.Id);
            Assert.AreEqual(balanceAfterToAccount, acctTo.Balance);
            Assert.AreEqual(idTo, acctTo.Id);
        }
        public void DepositAccount_InvalidID()
        {
            //Arrange
            //var balanceAfter = 300M; //Balance of account with id 2 is 300 before deposit
            var amount             = 100;
            var id                 = 10;
            var transferableLogger = new Mock <ILogger <TransferablesController> >();
            //var accountLogger = new Mock<ILogger<AccountsController>>();

            var accountMock     = new AccountRepoTest();
            var accountTypeMock = new AccountTypeRepo();
            // Generate controller
            //var testAccountController = new AccountsController(accountMock, accountLogger.Object);
            var testTransferablesController = new TransferablesController(accountMock, accountTypeMock, transferableLogger.Object);
            //Act
            var acctResponse = testTransferablesController.Deposit(id, amount);

            acctResponse.Wait(500);

            var responseResult = acctResponse.Result;

            Assert.IsInstanceOfType(responseResult, typeof(NotFoundObjectResult), "HTTP Response NOT 404 Not Found!");
            Assert.AreEqual((responseResult as NotFoundObjectResult).Value, 10, string.Format("Return value not {0}", (-1).ToString()));
        }
            public static StatementModel TestDataGenerated()
            {
                var model = new StatementModel(new FakeLogger())
                {
                    StorageKey = @"C:\Foo\StatementModel.csv",
                    LastImport = new DateTime(2015, 11, 21)
                };

                var transactions = new List <Transaction>
                {
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -55.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("PHNET"),
                        Date            = new DateTime(2015, 10, 21),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("ce628396-3f6b-4980-88ff-e4ea68a5c804"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Payment")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -24.10M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("PHNET"),
                        Date            = new DateTime(2015, 10, 21),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("67f9cbff-18ca-4d11-a5ef-22988e04584a"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Payment")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -3000.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 10, 23),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("c66eb722-6d03-48b2-b985-6721701a01ae"),
                        Reference1      = "automatchref12",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Debit Transfer")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -130.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("CAR MTC"),
                        Date            = new DateTime(2015, 10, 23),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("233a8a87-5583-47ef-ae72-592aa9c10eb8"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Debit Transfer")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("SAVINGS"),
                        Amount          = 3000.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SAVINGS"),
                        Date            = new DateTime(2015, 10, 23),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("9ecd767b-b3c7-4c15-a40f-1c0098e422ed"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Transfer")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("SAVINGS"),
                        Amount          = 130.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("CAR MTC"),
                        Date            = new DateTime(2015, 10, 23),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("1a0dd7ef-2962-4c8c-85cb-7d3e64748211"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Transfer")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -27.44M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("FUEL"),
                        Date            = new DateTime(2015, 10, 31),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("7ac24965-e21e-4f63-b3e4-9ec391843f56"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -73.34M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("CAR MTC"),
                        Date            = new DateTime(2015, 10, 31),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("7a9dd17a-1957-4ac4-8175-28a93d9a1eb9"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -32.70M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 1),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("31b7af5c-4429-4cf7-b0b4-54ff8d72eb1d"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -49.70M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 1),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("246fe376-d6b2-4a09-a881-f07d1577ffa7"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -30.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 2),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("886b4bd5-455c-42bb-826c-cc61edcec84f"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Atm Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -120.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("FOOD"),
                        Date            = new DateTime(2015, 11, 2),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("8673ce8f-629a-413f-b7c9-afbcc123cf80"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Atm Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -10.79M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 3),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("2a3b17cf-c4a0-4c01-893b-73677cc650ad"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -8.30M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 5),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("2a5b1821-802d-4b5e-af72-728dde935931"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -7.99M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 5),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("b87d9668-6d17-444f-89ef-d53cd1ba826c"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -17.32M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("POWER"),
                        Date            = new DateTime(2015, 11, 6),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("af952e91-9ca8-442e-9569-13b8796c9eef"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Payment")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -42.50M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 6),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("00172bd9-0ec4-4d92-94bf-d533299e0dc5"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -30.60M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 6),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("63a9d1dd-a28e-4561-8443-570af6f1da6a"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -11.47M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS.FENCE"),
                        Date            = new DateTime(2015, 11, 8),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("e53f7c07-f06b-4a99-8310-57d6f7aef2e8"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -31.49M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 8),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("810c31e3-bdfb-4aef-a6dd-b96a3789e27f"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -14.10M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 8),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("34249540-ac64-4392-9fa7-c0e10ecc06af"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -2.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 9),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("f705a9c8-533c-451e-9e4b-70266679af58"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Eft-Pos")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -38.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 11),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("b56e8c82-501e-4c77-b2ba-0fa9e86e19ef"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -8.90M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 12),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("eb465d02-e82c-4d5d-884a-2adb1c86cf4c"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -9.50M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 12),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("0ec1c6b3-8f4c-47d5-99e2-c01168cbae2c"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -40.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 13),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("ac3a08f2-3274-4667-b382-9f23e81fa9e8"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Eft-Pos")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -444.63M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("PHNET"),
                        Date            = new DateTime(2015, 11, 13),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("ce618893-06ab-4dab-8fd8-5578e6b90700"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Payment")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -11.50M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 13),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("5db38e40-a58b-47bb-9b1c-077b5f8cecc5"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -159.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS.FENCE"),
                        Date            = new DateTime(2015, 11, 14),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("92a6d37b-a846-4b2c-b9b3-14ba85c70295"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -24.10M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 14),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("f32b2ed3-717f-41b5-8892-d48df86579ef"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -471.01M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("CAR MTC"),
                        Date            = new DateTime(2015, 11, 14),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("8626f06a-5ba6-45e1-b197-4c0b0ab927c3"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -8.64M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 14),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("0f3d74ba-4456-41a1-a58e-b006534b664b"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -141.79M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 15),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("15bde657-e077-42a3-b0eb-1b49f76ba17d"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -5.00M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 16),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("860cce1e-abca-4520-8a03-6e73a2ddca13"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -8.50M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 18),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("8a6cd650-77cc-427b-a481-ac4b286ccfd4"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Eft-Pos")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -27.74M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 19),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("840acbce-af64-4ce8-a3e9-d33beea48bdb"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Payment")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("CHEQUE"),
                        Amount          = -25.30M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("PHNET"),
                        Date            = new DateTime(2015, 11, 19),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("9e18b22f-9623-44e7-b391-e868b482d545"),
                        Reference1      = "5235ghkh",
                        Reference2      = "792fgjgghkh",
                        Reference3      = "kjhgjklshgjsh",
                        TransactionType = new NamedTransaction("Payment")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -45.98M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 19),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("212a5450-81c7-4441-a851-84a1830e7a4a"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -3.50M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 19),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("aeb3c1ac-fb5a-4164-8125-3b5cf3487616"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    },
                    new Transaction
                    {
                        Account         = AccountTypeRepo.GetByKey("VISA"),
                        Amount          = -31.90M,
                        BudgetBucket    = BudgetBucketRepo.GetByCode("SURPLUS"),
                        Date            = new DateTime(2015, 11, 19),
                        Description     = "Lorem Ipsum Dolor",
                        Id              = new Guid("02861f41-a92c-4ffd-bd22-8194dc402f8d"),
                        Reference1      = "5235ghkh",
                        Reference2      = "",
                        Reference3      = "",
                        TransactionType = new NamedTransaction("Credit Card Debit")
                    }
                };

                return(model.LoadTransactions(transactions));
            }