diff --git a/FuelAndLubricants/FuelAndLubricants/FuelAndLubricants.csproj b/FuelAndLubricants/FuelAndLubricants/FuelAndLubricants.csproj
index 663fdb8..894afcd 100644
--- a/FuelAndLubricants/FuelAndLubricants/FuelAndLubricants.csproj
+++ b/FuelAndLubricants/FuelAndLubricants/FuelAndLubricants.csproj
@@ -8,4 +8,8 @@
enable
+
+
+
+
\ No newline at end of file
diff --git a/FuelAndLubricants/FuelAndLubricants/Program.cs b/FuelAndLubricants/FuelAndLubricants/Program.cs
index 9b4d241..dd083d0 100644
--- a/FuelAndLubricants/FuelAndLubricants/Program.cs
+++ b/FuelAndLubricants/FuelAndLubricants/Program.cs
@@ -1,3 +1,7 @@
+using FuelAndLubricants.Repositories;
+using FuelAndLubricants.Repositories.Implementations;
+using Unity;
+
namespace FuelAndLubricants
{
internal static class Program
@@ -11,7 +15,21 @@ namespace FuelAndLubricants
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
- Application.Run(new Form1());
+ Application.Run(CreateContainer().Resolve());
+ }
+
+ private static UnityContainer CreateContainer()
+ {
+ var container = new UnityContainer();
+
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+ container.RegisterType();
+
+ return container;
}
}
}
\ No newline at end of file