Skip to content

Commit

Permalink
refactor: All code, files, classes, methods, folders, organization, i…
Browse files Browse the repository at this point in the history
…mplementation and logic
  • Loading branch information
matheus-mondaini committed Sep 11, 2023
1 parent e59f60a commit 4eec5b5
Show file tree
Hide file tree
Showing 77 changed files with 332 additions and 556 deletions.
Binary file added .vs/OmniSeller/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file added .vs/OmniSeller/v17/.futdcache.v2
Binary file not shown.
Binary file added .vs/OmniSeller/v17/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .vs/PedidoInternacional/v17/.futdcache.v2
Binary file not shown.
Binary file removed .vs/PedidoInternacional/v17/.suo
Binary file not shown.
Binary file added .vs/ProjectEvaluation/omniseller.metadata.v7.bin
Binary file not shown.
Binary file added .vs/ProjectEvaluation/omniseller.projects.v7.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions App/MainMenu.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
public class MainMenu
{
public string Run()
{
return "OK";
}
}
4 changes: 4 additions & 0 deletions Models/Country.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public class Country : Entity
{
public Currency? Currency { get; set; }
}
5 changes: 5 additions & 0 deletions Models/Currency.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public class Currency : Entity
{
public new string ID { get; set; }
public double Price { get; set; }
}
4 changes: 4 additions & 0 deletions Models/Customer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public class Customer : Entity
{
public Country Country { get; set; }
}
5 changes: 5 additions & 0 deletions Models/Entity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public abstract class Entity
{
public int? ID { get; set; }
public string Name { get; set; }
}
4 changes: 4 additions & 0 deletions Models/Product.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public class Product : Entity
{
public double? Price { get; set; }
}
8 changes: 8 additions & 0 deletions Models/SaleOrder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class SaleOrder : Entity
{
public Customer Customer { get; set; }
public Seller Seller { get; set; }
public List<Product> Products { get; set; }
public DateTime Date { get; set; }
public double Total { get; set; }
}
3 changes: 3 additions & 0 deletions Models/Seller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public class Seller : Entity
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
12 changes: 6 additions & 6 deletions PedidoInternacional.sln → OmniSeller.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33723.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PedidoInternacional", "PedidoInternacional\PedidoInternacional.csproj", "{E753FE21-DA4D-41AE-B4DB-0C8051D9C66B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniSeller", "OmniSeller.csproj", "{CD817B42-717A-449D-99AD-B038DBC57303}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E753FE21-DA4D-41AE-B4DB-0C8051D9C66B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E753FE21-DA4D-41AE-B4DB-0C8051D9C66B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E753FE21-DA4D-41AE-B4DB-0C8051D9C66B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E753FE21-DA4D-41AE-B4DB-0C8051D9C66B}.Release|Any CPU.Build.0 = Release|Any CPU
{CD817B42-717A-449D-99AD-B038DBC57303}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD817B42-717A-449D-99AD-B038DBC57303}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD817B42-717A-449D-99AD-B038DBC57303}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD817B42-717A-449D-99AD-B038DBC57303}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8DB65665-E541-4E55-A48E-12930BE524F6}
SolutionGuid = {1D95EBDB-D6FB-4F32-9A0C-8420A23B50AA}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 4eec5b5

Please sign in to comment.