move the projects to seperate solutions

This commit is contained in:
Andreas Zweili 2018-08-14 21:06:17 +02:00
parent 6459ef961c
commit b92319ddd4
75 changed files with 54 additions and 14 deletions

View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2042
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AirlineServer", "AirlineServer\AirlineServer.csproj", "{78131D71-501C-45B5-B3EE-3A14CFB609F9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {526CF61C-F64D-4C2E-BA9A-A7AAD03B7337}
EndGlobalSection
EndGlobal

View File

@ -91,6 +91,8 @@
</Compile>
<Compile Include="IAirlineService.cs" />
<Compile Include="Models\Airline.cs" />
<Compile Include="Models\Airport.cs" />
<Compile Include="Models\City.cs" />
<Compile Include="Models\Flight.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>

View File

@ -12,7 +12,7 @@ namespace AirlineServer
// NOTE: In order to launch WCF Test Client for testing this service, please select AirlineService.svc or AirlineService.svc.cs at the Solution Explorer and start debugging.
public class AirlineService : IAirlineService
{
public ICollection<Flight> GetFreeFlights()
public ICollection<Flight> GetFreeFlights(DateTime startTime, DateTime endTime, string cityname, int numberOfSeats)
{
List<Flight> free_flights = new List<Flight>();
Airline lufthansa = new Airline { Name = "Lufthansa" };

View File

@ -13,6 +13,9 @@ namespace AirlineServer
public interface IAirlineService
{
[OperationContract]
ICollection<Flight> GetFreeFlights();
ICollection<Flight> GetFreeFlights(DateTime startTime, DateTime endTime, string cityname, int numberOfSeats);
[OperationContract]
Flight BookFlight(Flight flight, int numberOfSeats);
Flight CancelFlight(Flight flight, int numberOfSeats);
}
}

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AirlineServer.Models
{
public class Airport
{
}
}

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AirlineServer.Models
{
public class City
{
}
}

View File

@ -3,10 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2037
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPFClient", "WPFClient\WPFClient.csproj", "{D1BD059D-BFA9-4087-A8FB-08F2422D66DD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AirlineServer", "AirlineServer\AirlineServer.csproj", "{78131D71-501C-45B5-B3EE-3A14CFB609F9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Plattform", "Plattform\Plattform.csproj", "{CD441758-DC02-42F1-92BF-9A335B85B4A4}"
EndProject
Global
@ -15,14 +11,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D1BD059D-BFA9-4087-A8FB-08F2422D66DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1BD059D-BFA9-4087-A8FB-08F2422D66DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1BD059D-BFA9-4087-A8FB-08F2422D66DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1BD059D-BFA9-4087-A8FB-08F2422D66DD}.Release|Any CPU.Build.0 = Release|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78131D71-501C-45B5-B3EE-3A14CFB609F9}.Release|Any CPU.Build.0 = Release|Any CPU
{CD441758-DC02-42F1-92BF-9A335B85B4A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD441758-DC02-42F1-92BF-9A335B85B4A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD441758-DC02-42F1-92BF-9A335B85B4A4}.Release|Any CPU.ActiveCfg = Release|Any CPU