Permalink
Browse files

Creation of `Movie` derivatives

  • Loading branch information...
rdeneau committed Aug 26, 2018
1 parent a33d70d commit f37948155d3d43942b655cd6064a8155b55fc167
@@ -6,12 +6,12 @@ public class VideoStoreTests
{
private readonly Statement _statement = new Statement("Customer");

private readonly Movie _newRelease1 = new Movie("NEW_RELEASE_1", Movie.NEW_RELEASE);
private readonly Movie _newRelease2 = new Movie("NEW_RELEASE_2", Movie.NEW_RELEASE);
private readonly Movie _children = new Movie("CHILDREN", Movie.CHILDREN);
private readonly Movie _regular1 = new Movie("REGULAR_1", Movie.REGULAR);
private readonly Movie _regular2 = new Movie("REGULAR_2", Movie.REGULAR);
private readonly Movie _regular3 = new Movie("REGULAR_3", Movie.REGULAR);
private readonly Movie _newRelease1 = new NewReleaseMovie("NEW_RELEASE_1");
private readonly Movie _newRelease2 = new NewReleaseMovie("NEW_RELEASE_2");
private readonly Movie _children = new ChildrenMovie("CHILDREN");
private readonly Movie _regular1 = new RegularMovie("REGULAR_1");
private readonly Movie _regular2 = new RegularMovie("REGULAR_2");
private readonly Movie _regular3 = new RegularMovie("REGULAR_3");

[Fact]
public void TestSingleNewReleaseStatementTotals()
@@ -0,0 +1,7 @@
namespace Soat.CleanCode.VideoStore.UncleBobFull
{
public class ChildrenMovie : Movie
{
public ChildrenMovie(string title) : base(title, CHILDREN) { }
}
}
@@ -0,0 +1,7 @@
namespace Soat.CleanCode.VideoStore.UncleBobFull
{
public class NewReleaseMovie : Movie
{
public NewReleaseMovie(string title) : base(title, NEW_RELEASE) { }
}
}
@@ -0,0 +1,7 @@
namespace Soat.CleanCode.VideoStore.UncleBobFull
{
public class RegularMovie : Movie
{
public RegularMovie(string title) : base(title, REGULAR) { }
}
}
@@ -39,6 +39,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ChildrenMovie.cs" />
<Compile Include="NewReleaseMovie.cs" />
<Compile Include="RegularMovie.cs" />
<Compile Include="Statement.cs" />
<Compile Include="Movie.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />

0 comments on commit f379481

Please sign in to comment.