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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

/.vs/Lab07-CustomCollection/v15/.suo
/Collections/.vs/Collections/v15/.suo
/Collections/.vs/Collections/v15/Server/sqlite3
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file modified .vs/slnx.sqlite
Binary file not shown.
31 changes: 31 additions & 0 deletions Collections/Collections.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Collections", "Collections\Collections.csproj", "{8BFC2D31-26C1-4615-ACC3-690FAF16A502}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XUnitTestProject1", "XUnitTestProject1\XUnitTestProject1.csproj", "{3D94E9D5-7457-40FD-90AD-E9627251D21F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8BFC2D31-26C1-4615-ACC3-690FAF16A502}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BFC2D31-26C1-4615-ACC3-690FAF16A502}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BFC2D31-26C1-4615-ACC3-690FAF16A502}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BFC2D31-26C1-4615-ACC3-690FAF16A502}.Release|Any CPU.Build.0 = Release|Any CPU
{3D94E9D5-7457-40FD-90AD-E9627251D21F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D94E9D5-7457-40FD-90AD-E9627251D21F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D94E9D5-7457-40FD-90AD-E9627251D21F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D94E9D5-7457-40FD-90AD-E9627251D21F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {17C156F2-9859-49FF-ADFB-02081656B562}
EndGlobalSection
EndGlobal
12 changes: 12 additions & 0 deletions Collections/Collections/Collections.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit" Version="2.3.1" />
</ItemGroup>

</Project>
86 changes: 86 additions & 0 deletions Collections/Collections/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;

// TODO: Add Tests

namespace Collections
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Welcome to the Cheese Store!");
Console.WriteLine("Press Enter to view a list of our products: ");
Console.WriteLine();

ViewAll();

Console.ReadLine();
Console.Clear();

int x = (int)Cheddar.Sharp;
int y = (int)Cheddar.Mild;
int z = (int)Cheddar.Hard;
Console.WriteLine("Our Cheddar options include: ");
Console.WriteLine("Sharp = {0}", x);
Console.WriteLine("Mild = {0}", y);
Console.WriteLine("Hard = {0}", z);

Console.ReadLine();
}

/// <summary>
/// List of Products added and removed
/// </summary>
public static string Products()
{
// Create List of 10 Products w/ collection intializer
List<string> cheeseProducts = new List<string>
{ "Brie", "Gouda", "Blue", "Swiss", "Cheddar",
"Goat", "Feta", "Ricotta", "Parmesan", "Kraft" };

// Add items using add method
cheeseProducts.Add("Gruyere");
cheeseProducts.Add("Muenster");

// Remove items using remove method
cheeseProducts.Remove("Kraft");

// Iterate through the list and output to the console
foreach (string i in cheeseProducts)
{
Console.WriteLine(i);
}

Console.WriteLine("Press Enter to view Cheddar options: ");
string readList = Console.ReadLine();
return readList;
}

/// <summary>
/// Enumerated int values of Cheddar options
/// </summary>
public enum Cheddar : int
{
Sharp,
Mild,
Hard,
}

/// <summary>
/// Allows you to view the entire list
/// </summary>
/// <returns>String of product list</returns>
public static string ViewAll()
{
Console.ReadLine();
string view = Products();
return view;
}

public static string TestingTest()
{
return "1";
}
}
}
115 changes: 115 additions & 0 deletions Collections/Collections/bin/Debug/netcoreapp2.0/Collections.deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v2.0",
"signature": "9f73f47f96268db03c3857a6003f7c4743dcd996"
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v2.0": {
"Collections/1.0.0": {
"dependencies": {
"xunit": "2.3.1"
},
"runtime": {
"Collections.dll": {}
}
},
"xunit/2.3.1": {
"dependencies": {
"xunit.analyzers": "0.7.0",
"xunit.assert": "2.3.1",
"xunit.core": "2.3.1"
}
},
"xunit.abstractions/2.0.1": {
"runtime": {
"lib/netstandard1.0/xunit.abstractions.dll": {}
}
},
"xunit.analyzers/0.7.0": {},
"xunit.assert/2.3.1": {
"runtime": {
"lib/netstandard1.1/xunit.assert.dll": {}
}
},
"xunit.core/2.3.1": {
"dependencies": {
"xunit.extensibility.core": "2.3.1",
"xunit.extensibility.execution": "2.3.1"
}
},
"xunit.extensibility.core/2.3.1": {
"dependencies": {
"xunit.abstractions": "2.0.1"
},
"runtime": {
"lib/netstandard1.1/xunit.core.dll": {}
}
},
"xunit.extensibility.execution/2.3.1": {
"dependencies": {
"xunit.extensibility.core": "2.3.1"
},
"runtime": {
"lib/netstandard1.1/xunit.execution.dotnet.dll": {}
}
}
}
},
"libraries": {
"Collections/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"xunit/2.3.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-IWux0xXfZ/bC7SgooK5rmW5KwCwFg9GFslmPxA7+pJsT+2SRyhOfOgNUXDd7B09UN4f6kogRT2TqNi6gbWEspA==",
"path": "xunit/2.3.1",
"hashPath": "xunit.2.3.1.nupkg.sha512"
},
"xunit.abstractions/2.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-bDm/zdG5rnRDsobKuKwrvL4HccBdC0uvT12be6fG12P3d1U7u9Wkvfoq/PM2GeyIeb0Dtcmm/7k2oaawiqQ2Dg==",
"path": "xunit.abstractions/2.0.1",
"hashPath": "xunit.abstractions.2.0.1.nupkg.sha512"
},
"xunit.analyzers/0.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-pEjPJ/pd+r9blGBJ9bXg961phkAiCl4k2DwxwWGEZyYC/7Tb1xJ1az0H18uGANX7zFIkvE5ZO1eZZ4vU7gny7w==",
"path": "xunit.analyzers/0.7.0",
"hashPath": "xunit.analyzers.0.7.0.nupkg.sha512"
},
"xunit.assert/2.3.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-+mUMp3aJOS0ag3qJ2tUhVa930KhwjyypxXT4Ab8lQozEQN8/xgkblQnYs0woIWpr2NbzEOxsZojytl9NBVRKxg==",
"path": "xunit.assert/2.3.1",
"hashPath": "xunit.assert.2.3.1.nupkg.sha512"
},
"xunit.core/2.3.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LOG4qOFuVQcjYcIuZbKeo03Uvng3lSb2gZJU9ANljwCf+PTd//iAMZS5qcJQZrjhndc4aOUlJGQy5wa0+/iZ6w==",
"path": "xunit.core/2.3.1",
"hashPath": "xunit.core.2.3.1.nupkg.sha512"
},
"xunit.extensibility.core/2.3.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-1mgYqXeQfU+7zcSRW8/5Uf1jVZ5+5WELmi+BuRTh0xu/x0Q0gK0SuR3FLUF4BSd8sfZzvrRUrhWj3ltpyFxhrg==",
"path": "xunit.extensibility.core/2.3.1",
"hashPath": "xunit.extensibility.core.2.3.1.nupkg.sha512"
},
"xunit.extensibility.execution/2.3.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-i8xrHfKC5dyBWQ7I15FePzm0m8KNToBsTleCCQbOQuXRPZIvupd4nnfaCPeJuKHHe7yJ8JGtWxjIgw0ow/cMhg==",
"path": "xunit.extensibility.execution/2.3.1",
"hashPath": "xunit.extensibility.execution.2.3.1.nupkg.sha512"
}
}
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\jeffmartinez\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jeffmartinez\\.nuget\\packages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp2.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "2.0.0"
}
}
}
5 changes: 5 additions & 0 deletions Collections/Collections/obj/Collections.csproj.nuget.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": 1,
"dgSpecHash": "/+VbJXGGeda1jhmVU0qtogBi3UHN0sHhhwKBMSva6YM6E63UXDKQfOvxiOgFJOowdHaQ86irPzE4ligeSh2GrQ==",
"success": true
}
19 changes: 19 additions & 0 deletions Collections/Collections/obj/Collections.csproj.nuget.g.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\jeffmartinez\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.5.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)xunit.core\2.3.1\build\xunit.core.props" Condition="Exists('$(NuGetPackageRoot)xunit.core\2.3.1\build\xunit.core.props')" />
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\build\netcoreapp2.0\Microsoft.NETCore.App.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\build\netcoreapp2.0\Microsoft.NETCore.App.props')" />
</ImportGroup>
</Project>
11 changes: 11 additions & 0 deletions Collections/Collections/obj/Collections.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.0\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.0\build\netstandard2.0\NETStandard.Library.targets')" />
<Import Project="$(NuGetPackageRoot)xunit.core\2.3.1\build\xunit.core.targets" Condition="Exists('$(NuGetPackageRoot)xunit.core\2.3.1\build\xunit.core.targets')" />
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\build\netcoreapp2.0\Microsoft.NETCore.App.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\build\netcoreapp2.0\Microsoft.NETCore.App.targets')" />
</ImportGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("Collections")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Collections")]
[assembly: System.Reflection.AssemblyTitleAttribute("Collections")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
495337cb5b232f2716c2393280be4bbc3cd3026b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
96e73f4424341c636f3d4b6ae3c0f58c56d16433
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\bin\Debug\netcoreapp2.0\Collections.deps.json
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\bin\Debug\netcoreapp2.0\Collections.runtimeconfig.json
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\bin\Debug\netcoreapp2.0\Collections.runtimeconfig.dev.json
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\bin\Debug\netcoreapp2.0\Collections.dll
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\Debug\netcoreapp2.0\Collections.csprojResolveAssemblyReference.cache
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\Debug\netcoreapp2.0\Collections.csproj.CoreCompileInputs.cache
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\Debug\netcoreapp2.0\Collections.AssemblyInfoInputs.cache
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\Debug\netcoreapp2.0\Collections.AssemblyInfo.cs
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\bin\Debug\netcoreapp2.0\Collections.pdb
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\Debug\netcoreapp2.0\Collections.dll
C:\Users\jeffmartinez\source\repos\Lab07-CustomCollection\Collections\Collections\obj\Debug\netcoreapp2.0\Collections.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading