Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .vs/BankProject/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
17 changes: 14 additions & 3 deletions BankProject.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32014.148
# Visual Studio Version 16
VisualStudioVersion = 16.0.31424.327
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankProject", "BankProject\BankProject.csproj", "{16C39874-DEFF-4271-9CE0-336111B0F833}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BankProject", "BankProject\BankProject.csproj", "{16C39874-DEFF-4271-9CE0-336111B0F833}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StageTwoTask", "StageTwoTask", "{4F42030D-EE41-415D-B39C-65FD73FAE274}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Chris", "Chris", "{6E0AC6A7-32AF-4C61-89EB-0DB15EF2D73C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StageThreeTask", "StageThreeTask", "{6E0361AF-00B7-450B-B811-034F6EC6FA45}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -19,6 +25,11 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{16C39874-DEFF-4271-9CE0-336111B0F833} = {4F42030D-EE41-415D-B39C-65FD73FAE274}
{4F42030D-EE41-415D-B39C-65FD73FAE274} = {6E0AC6A7-32AF-4C61-89EB-0DB15EF2D73C}
{6E0361AF-00B7-450B-B811-034F6EC6FA45} = {6E0AC6A7-32AF-4C61-89EB-0DB15EF2D73C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {123C7F3B-1B1C-48B0-9654-68ABF2074ED3}
EndGlobalSection
Expand Down
19 changes: 5 additions & 14 deletions BankProject/AppServices/UserServices.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -77,7 +78,7 @@ public void Regiser()

public void AddNewMember()
{
string filePath = @"C:\Users\USER\Desktop\Project\BankProject\BankProject\Test.txt";
string filePath = @"C:\Users\DELL\source\repos\Vector\BankProject\Test.txt";
List<string> lines = File.ReadAllLines(filePath).ToList();
List<UserAccount> UserAccountList = new List<UserAccount>();

Expand Down Expand Up @@ -145,7 +146,7 @@ public void AddNewMember()

public void InitializeData()
{
string filePath = @"C:\Users\USER\Desktop\Project\BankProject\BankProject\Test.txt";
string filePath = @"C:\Users\DELL\source\repos\Vector\BankProject\Test.txt";
List<UserAccount> UserAccountList = new List<UserAccount>();
List<string> lines = File.ReadAllLines(filePath).ToList();
foreach (string line in lines)
Expand All @@ -165,16 +166,6 @@ public void InitializeData()
userAccountList.Add(userAccount);
}

//1,Adebanjo Olaide,123456,321321,123123,5000.00,0,false
//2,Folorunso Nene,456789,654654,456456 ,4000.00,0,false
//3,Olatunji Money,987654,987987,789789,3000.00,1,true

// userAccountList = new List<UserAccount>
//{
// new UserAccount{Id = 1, FullName = "Adebanjo Olaide", AccountNumber = 123456, CardNumber = 321321, CardPin = 123123, AccountBalance = 5000.00m, IsLocked=false},
// new UserAccount{Id = 2, FullName = "Folorunso Nene", AccountNumber = 456789, CardNumber = 654654, CardPin = 456456 , AccountBalance = 4000.00m, IsLocked=false},
// new UserAccount{Id = 3, FullName = "Olatunji Money", AccountNumber = 987654, CardNumber = 987987, CardPin = 789789, AccountBalance = 3000.00m, IsLocked=true},
// };
_ListOfTransactions = new List<Transaction>();

}
Expand Down Expand Up @@ -413,7 +404,7 @@ public void InsertTransaction(long _userBankAccountId, TransactionType _tranType
TransactionDate = DateTime.Now,
TransactionType = _tranType,
TransactionAmount = _tranAmount,
Descriprion = _desc
Description = _desc
};

_ListOfTransactions.Add(transaction);
Expand All @@ -433,7 +424,7 @@ public void ViewTransaction()
var table = new ConsoleTable("Id", "Transaction Date", "Type", "Descriptions", "Amount " + AppScreen.cur);
foreach (var tran in filteredTransactionList)
{
table.AddRow(tran.TransactionId, tran.TransactionDate, tran.TransactionType, tran.Descriprion, tran.TransactionAmount);
table.AddRow(tran.TransactionId, tran.TransactionDate, tran.TransactionType, tran.Description, tran.TransactionAmount);
}
table.Options.EnableCount = false;
table.Write();
Expand Down
4 changes: 2 additions & 2 deletions BankProject/BankProject.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions BankProject/Display/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace BankProject.Display
Expand Down
2 changes: 1 addition & 1 deletion BankProject/Domain/Enitities/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Transaction
public long UserBankAccountId { get; set; }
public DateTime TransactionDate { get; set; }
public TransactionType TransactionType { get; set; }
public string Descriprion { get; set; }
public string Description { get; set; }
public Decimal TransactionAmount { get; set; }
}
}
26 changes: 0 additions & 26 deletions BankProject/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,6 @@



//decimal val = 1278.112m;


//CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
//Console.WriteLine($"{val}");
//var culture = CultureInfo.CreateSpecificCulture("en-US");
//var culture2 = new CultureInfo("en-US");

//string numberAsString = val.ToString("# #####.###", culture);
//string numberAsString2 = val.ToString("# #####.###", culture2);
//Console.WriteLine(numberAsString);
//Console.WriteLine(numberAsString2);

//var culture = CultureInfo.CreateSpecificCulture("en-US");
//var culture = CultureInfo.CreateSpecificCulture("en-NG");
//Console.OutputEncoding = Encoding.Unicode;
//var culture = CultureInfo.CreateSpecificCulture("yo-NG");
////decimal number = 1_500_000.50m;
//decimal number = 1500000.50m;

//string numberString = number.ToString("C", CultureInfo.InvariantCulture);
////string numberString = number.ToString("C");

//string numberStringTwo = number.ToString("C0", culture);
//Console.WriteLine(numberString);
//Console.WriteLine(numberStringTwo);



Expand Down
31 changes: 15 additions & 16 deletions BankProject/obj/BankProject.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
{
"format": 1,
"restore": {
"C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\BankProject.csproj": {}
"C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\BankProject.csproj": {}
},
"projects": {
"C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\BankProject.csproj": {
"C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\BankProject.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\BankProject.csproj",
"projectUniqueName": "C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\BankProject.csproj",
"projectName": "BankProject",
"projectPath": "C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\BankProject.csproj",
"packagesPath": "C:\\Users\\USER\\.nuget\\packages\\",
"outputPath": "C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\obj\\",
"projectPath": "C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\BankProject.csproj",
"packagesPath": "C:\\Users\\DELL\\.nuget\\packages\\",
"outputPath": "C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\"
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\USER\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Users\\DELL\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
Expand All @@ -43,8 +42,8 @@
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"ConsoleTables": {
"target": "Package",
Expand All @@ -70,7 +69,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.301\\RuntimeIdentifierGraph.json"
}
}
}
Expand Down
11 changes: 7 additions & 4 deletions BankProject/obj/BankProject.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\USER\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\</NuGetPackageFolders>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\DELL\.nuget\packages\;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.1</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.10.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\USER\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
<SourceRoot Include="C:\Users\DELL\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft\Xamarin\NuGet\" />
<SourceRoot Include="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
6 changes: 5 additions & 1 deletion BankProject/obj/BankProject.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = BankProject
build_property.ProjectDir = C:\Users\USER\Desktop\Project\BankProject\BankProject\
build_property.PublishSingleFile =
build_property.IncludeAllContentForSelfExtract =
build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows
Binary file modified BankProject/obj/Debug/net6.0/BankProject.assets.cache
Binary file not shown.
Binary file not shown.
41 changes: 20 additions & 21 deletions BankProject/obj/project.assets.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 3,
"targets": {
"net6.0": {
"net5.0": {
"ConsoleTables/2.4.2": {
"type": "package",
"dependencies": {
Expand Down Expand Up @@ -35,10 +35,10 @@
"Newtonsoft.Json/13.0.2": {
"type": "package",
"compile": {
"lib/net6.0/Newtonsoft.Json.dll": {}
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/net6.0/Newtonsoft.Json.dll": {}
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
}
},
"System.IO/4.3.0": {
Expand Down Expand Up @@ -706,45 +706,44 @@
}
},
"projectFileDependencyGroups": {
"net6.0": [
"net5.0": [
"ConsoleTables >= 2.4.2",
"Newtonsoft.Json >= 13.0.2"
]
},
"packageFolders": {
"C:\\Users\\USER\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {},
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {}
"C:\\Users\\DELL\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\BankProject.csproj",
"projectUniqueName": "C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\BankProject.csproj",
"projectName": "BankProject",
"projectPath": "C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\BankProject.csproj",
"packagesPath": "C:\\Users\\USER\\.nuget\\packages\\",
"outputPath": "C:\\Users\\USER\\Desktop\\Project\\BankProject\\BankProject\\obj\\",
"projectPath": "C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\BankProject.csproj",
"packagesPath": "C:\\Users\\DELL\\.nuget\\packages\\",
"outputPath": "C:\\Users\\DELL\\source\\repos\\Vector\\BankProject\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\"
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\USER\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Users\\DELL\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
Expand All @@ -755,8 +754,8 @@
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"ConsoleTables": {
"target": "Package",
Expand All @@ -782,7 +781,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.301\\RuntimeIdentifierGraph.json"
}
}
}
Expand Down
Loading