Создание проекта с контрактами

This commit is contained in:
AnnZhimol 2023-04-01 18:42:08 +04:00
parent 53c8398e12
commit a8899463d7
11 changed files with 77 additions and 0 deletions

View File

@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelView", "HotelView\Hote
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelDataModels", "HotelDataModels\HotelDataModels.csproj", "{08223741-597B-416D-8357-49E61B9C8AC0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelContracts", "HotelContracts\HotelContracts.csproj", "{234B3526-A74E-43D2-9333-E74B4FF9A356}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -21,6 +23,10 @@ Global
{08223741-597B-416D-8357-49E61B9C8AC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08223741-597B-416D-8357-49E61B9C8AC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{08223741-597B-416D-8357-49E61B9C8AC0}.Release|Any CPU.Build.0 = Release|Any CPU
{234B3526-A74E-43D2-9333-E74B4FF9A356}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{234B3526-A74E-43D2-9333-E74B4FF9A356}.Debug|Any CPU.Build.0 = Debug|Any CPU
{234B3526-A74E-43D2-9333-E74B4FF9A356}.Release|Any CPU.ActiveCfg = Release|Any CPU
{234B3526-A74E-43D2-9333-E74B4FF9A356}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -0,0 +1,15 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels
{
public class ConferenceBindingModel : IConferenceModel
{
public string ConferenceName { get; set; } = string.Empty;
public DateTime StartDate { get; set; } = DateTime.Now;
public int Id { get; set; }
public int OrganiserId { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using HotelDataModels.Models;
namespace HotelContracts.BindingModels
{
public class MealPlanBindingModel : IMealPlanModel
{
public string MealPlanName { get; set; } = string.Empty;
public double MealPlanPrice { get; set; }
public int OrganiserId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,6 @@
namespace HotelContracts.BusinessLogicsContracts
{
public interface IConferenceLogic
{
}
}

View File

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\HotelDataModels\HotelDataModels.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,6 @@
namespace HotelContracts.SearchModels
{
public class ConferenceSearchModel
{
}
}

View File

@ -0,0 +1,6 @@
namespace HotelContracts.StoragesContracts
{
public interface IConferenceStorage
{
}
}

View File

@ -0,0 +1,6 @@
namespace HotelContracts.ViewModels
{
public class ConferenceViewModel
{
}
}

View File

@ -4,5 +4,6 @@
{
string ConferenceName { get; }
DateTime StartDate { get; }
int OrganiserId { get; }
}
}

View File

@ -4,5 +4,6 @@
{
string MealPlanName { get; }
double MealPlanPrice { get; }
int OrganiserId { get; }
}
}

View File

@ -4,5 +4,7 @@
{
string MemberFIO { get; }
string Citizenship { get; }
int OrganiserId { get; }
}
}