Skip to content

Commit 18e4fab

Browse files
committed
Added Wednesday workshops
1 parent 231279d commit 18e4fab

File tree

89 files changed

+2903
-1190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2903
-1190
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.30723.0
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmetics", "Cosmetics\Cosmetics.csproj", "{B005C0B3-5C89-45A7-9BE1-FAB966806F40}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Release|Any CPU.Build.0 = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.30723.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmetics", "Cosmetics\Cosmetics.csproj", "{B005C0B3-5C89-45A7-9BE1-FAB966806F40}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B005C0B3-5C89-45A7-9BE1-FAB966806F40}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
2-
<configuration>
3-
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5-
</startup>
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
66
</configuration>
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
using Cosmetics.Contracts;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
7-
8-
namespace Cosmetics.Cart
9-
{
10-
public class ShoppingCart
11-
{
12-
private ICollection<IProduct> productList;
13-
14-
public ShoppingCart()
15-
{
16-
this.ProductList = null;
17-
}
18-
19-
public ICollection<IProduct> ProductList
20-
{
21-
get { return this.productList; }
22-
set { productList = value; }
23-
}
24-
25-
public void AddProduct(IProduct product)
26-
{
27-
throw new NotImplementedException();
28-
}
29-
30-
public void RemoveProduct(IProduct product)
31-
{
32-
throw new NotImplementedException();
33-
}
34-
35-
public bool ContainsProduct(IProduct product)
36-
{
37-
throw new NotImplementedException();
38-
}
39-
40-
public decimal TotalPrice()
41-
{
42-
throw new NotImplementedException();
43-
}
44-
}
45-
}
1+
using Cosmetics.Contracts;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Cosmetics.Cart
9+
{
10+
public class ShoppingCart
11+
{
12+
private ICollection<IProduct> productList;
13+
14+
public ShoppingCart()
15+
{
16+
this.ProductList = null;
17+
}
18+
19+
public ICollection<IProduct> ProductList
20+
{
21+
get { return this.productList; }
22+
set { productList = value; }
23+
}
24+
25+
public void AddProduct(IProduct product)
26+
{
27+
throw new NotImplementedException();
28+
}
29+
30+
public void RemoveProduct(IProduct product)
31+
{
32+
throw new NotImplementedException();
33+
}
34+
35+
public bool ContainsProduct(IProduct product)
36+
{
37+
throw new NotImplementedException();
38+
}
39+
40+
public decimal TotalPrice()
41+
{
42+
throw new NotImplementedException();
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
namespace Cosmetics.Common
2-
{
3-
public enum GenderType
4-
{
5-
Men,
6-
Women,
7-
Unisex
8-
}
9-
}
1+
namespace Cosmetics.Common
2+
{
3+
public enum GenderType
4+
{
5+
Men,
6+
Women,
7+
Unisex
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
namespace Cosmetics.Common
2-
{
3-
public class GlobalErrorMessages
4-
{
5-
public const string StringCannotBeNullOrEmpty = "{0} cannot be null or empty!";
6-
public const string ObjectCannotBeNull = "{0} cannot be null!";
7-
public const string InvalidStringLength = "{0} must be between {1} and {2} symbols long!";
8-
}
9-
}
1+
namespace Cosmetics.Common
2+
{
3+
public class GlobalErrorMessages
4+
{
5+
public const string StringCannotBeNullOrEmpty = "{0} cannot be null or empty!";
6+
public const string ObjectCannotBeNull = "{0} cannot be null!";
7+
public const string InvalidStringLength = "{0} must be between {1} and {2} symbols long!";
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace Cosmetics.Common
2-
{
3-
public enum UsageType
4-
{
5-
EveryDay,
6-
Medical
7-
}
8-
}
1+
namespace Cosmetics.Common
2+
{
3+
public enum UsageType
4+
{
5+
EveryDay,
6+
Medical
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
namespace Cosmetics.Common
2-
{
3-
using System;
4-
5-
public static class Validator
6-
{
7-
public static void CheckIfNull(object obj, string message = null)
8-
{
9-
if (obj == null)
10-
{
11-
throw new NullReferenceException(message);
12-
}
13-
}
14-
15-
public static void CheckIfStringIsNullOrEmpty(string text, string message = null)
16-
{
17-
if (string.IsNullOrEmpty(text))
18-
{
19-
throw new NullReferenceException(message);
20-
}
21-
}
22-
23-
public static void CheckIfStringLengthIsValid(string text, int max, int min = 0, string message = null)
24-
{
25-
if (text.Length < min || max < text.Length)
26-
{
27-
throw new IndexOutOfRangeException(message);
28-
}
29-
}
30-
}
31-
}
1+
namespace Cosmetics.Common
2+
{
3+
using System;
4+
5+
public static class Validator
6+
{
7+
public static void CheckIfNull(object obj, string message = null)
8+
{
9+
if (obj == null)
10+
{
11+
throw new NullReferenceException(message);
12+
}
13+
}
14+
15+
public static void CheckIfStringIsNullOrEmpty(string text, string message = null)
16+
{
17+
if (string.IsNullOrEmpty(text))
18+
{
19+
throw new NullReferenceException(message);
20+
}
21+
}
22+
23+
public static void CheckIfStringLengthIsValid(string text, int max, int min = 0, string message = null)
24+
{
25+
if (text.Length < min || max < text.Length)
26+
{
27+
throw new IndexOutOfRangeException(message);
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
namespace Cosmetics.Contracts
2-
{
3-
public interface ICategory
4-
{
5-
string Name { get; }
6-
7-
void AddCosmetics(IProduct cosmetics);
8-
9-
void RemoveCosmetics(IProduct cosmetics);
10-
11-
string Print();
12-
}
13-
}
1+
namespace Cosmetics.Contracts
2+
{
3+
public interface ICategory
4+
{
5+
string Name { get; }
6+
7+
void AddCosmetics(IProduct cosmetics);
8+
9+
void RemoveCosmetics(IProduct cosmetics);
10+
11+
string Print();
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
namespace Cosmetics.Contracts
2-
{
3-
using System.Collections.Generic;
4-
5-
interface ICommand
6-
{
7-
string Name { get; }
8-
9-
IList<string> Parameters { get; }
10-
}
11-
}
1+
namespace Cosmetics.Contracts
2+
{
3+
using System.Collections.Generic;
4+
5+
interface ICommand
6+
{
7+
string Name { get; }
8+
9+
IList<string> Parameters { get; }
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
namespace Cosmetics.Contracts
2-
{
3-
using System.Collections.Generic;
4-
5-
using Cosmetics.Common;
6-
using Cart;
7-
using Products;
8-
9-
public interface ICosmeticsFactory
10-
{
11-
ICategory CreateCategory(string name);
12-
13-
Shampoo CreateShampoo(string name, string brand, decimal price, GenderType gender, uint milliliters, UsageType usage);
14-
15-
IToothpaste CreateToothpaste(string name, string brand, decimal price, GenderType gender, IList<string> ingredients);
16-
17-
ShoppingCart ShoppingCart();
18-
}
19-
}
1+
namespace Cosmetics.Contracts
2+
{
3+
using System.Collections.Generic;
4+
5+
using Cosmetics.Common;
6+
using Cart;
7+
using Products;
8+
9+
public interface ICosmeticsFactory
10+
{
11+
ICategory CreateCategory(string name);
12+
13+
Shampoo CreateShampoo(string name, string brand, decimal price, GenderType gender, uint milliliters, UsageType usage);
14+
15+
IToothpaste CreateToothpaste(string name, string brand, decimal price, GenderType gender, IList<string> ingredients);
16+
17+
ShoppingCart ShoppingCart();
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
namespace Cosmetics.Contracts
2-
{
3-
public interface IEngine
4-
{
5-
void Start();
6-
}
7-
}
1+
namespace Cosmetics.Contracts
2+
{
3+
public interface IEngine
4+
{
5+
void Start();
6+
}
7+
}

0 commit comments

Comments
 (0)