Skip to content

Commit

Permalink
moved test classes to their own files
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch committed Jun 9, 2010
1 parent 42b803c commit ae22338
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
<ItemGroup>
<Compile Include="FacilityTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SomeJobListener.cs" />
<Compile Include="SomeTriggerListener.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\QuartzNetIntegration\Castle.Facilities.QuartzIntegration.csproj">
Expand Down
41 changes: 0 additions & 41 deletions QuartzNetIntegration.Tests/FacilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,46 +124,5 @@ public void TriggerListeners() {
Assert.IsNotNull(trigli);

}


public class SomeTriggerListener : ITriggerListener {
public void TriggerFired(Trigger trigger, JobExecutionContext context) {
throw new NotImplementedException();
}

public bool VetoJobExecution(Trigger trigger, JobExecutionContext context) {
throw new NotImplementedException();
}

public void TriggerMisfired(Trigger trigger) {
throw new NotImplementedException();
}

public void TriggerComplete(Trigger trigger, JobExecutionContext context, SchedulerInstruction triggerInstructionCode) {
throw new NotImplementedException();
}

public string Name {
get { return GetType().AssemblyQualifiedName; }
}
}

public class SomeJobListener : IJobListener {
public void JobToBeExecuted(JobExecutionContext context) {
throw new NotImplementedException();
}

public void JobExecutionVetoed(JobExecutionContext context) {
throw new NotImplementedException();
}

public void JobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {
throw new NotImplementedException();
}

public string Name {
get { return GetType().AssemblyQualifiedName; }
}
}
}
}
22 changes: 22 additions & 0 deletions QuartzNetIntegration.Tests/SomeJobListener.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using Quartz;

namespace Castle.Facilities.QuartzIntegration.Tests {
public class SomeJobListener : IJobListener {
public void JobToBeExecuted(JobExecutionContext context) {
throw new NotImplementedException();
}

public void JobExecutionVetoed(JobExecutionContext context) {
throw new NotImplementedException();
}

public void JobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {
throw new NotImplementedException();
}

public string Name {
get { return GetType().AssemblyQualifiedName; }
}
}
}
26 changes: 26 additions & 0 deletions QuartzNetIntegration.Tests/SomeTriggerListener.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using Quartz;

namespace Castle.Facilities.QuartzIntegration.Tests {
public class SomeTriggerListener : ITriggerListener {
public void TriggerFired(Trigger trigger, JobExecutionContext context) {
throw new NotImplementedException();
}

public bool VetoJobExecution(Trigger trigger, JobExecutionContext context) {
throw new NotImplementedException();
}

public void TriggerMisfired(Trigger trigger) {
throw new NotImplementedException();
}

public void TriggerComplete(Trigger trigger, JobExecutionContext context, SchedulerInstruction triggerInstructionCode) {
throw new NotImplementedException();
}

public string Name {
get { return GetType().AssemblyQualifiedName; }
}
}
}

0 comments on commit ae22338

Please sign in to comment.