-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from Particular/develop
Switch to release flow
- Loading branch information
Showing
8 changed files
with
103 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
For information on contributing, see https://docs.particular.net/platform/contributing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
assembly-versioning-scheme: Major | ||
next-version: 7.0 | ||
next-version: 1.0 | ||
branches: | ||
develop: | ||
master: | ||
mode: ContinuousDeployment | ||
tag: alpha | ||
increment: Minor | ||
tracks-release-branches: true | ||
release: | ||
tag: rc | ||
tag: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
namespace NServiceBus.Testing.Tests | ||
{ | ||
using NUnit.Framework; | ||
|
||
[TestFixture] | ||
public class FakeBuilderTests | ||
{ | ||
[Test] | ||
public void ShouldResolveRegisteredFuncs() | ||
{ | ||
var builder = new FakeBuilder(); | ||
|
||
var instance = new SomeClass(); | ||
|
||
builder.Register(()=> instance); | ||
|
||
Assert.AreSame(instance, builder.Build<SomeClass>()); | ||
} | ||
|
||
[Test] | ||
public void ShouldResolveRegisteredFuncArrays() | ||
{ | ||
var builder = new FakeBuilder(); | ||
|
||
var instance = new SomeClass(); | ||
var instance2 = new SomeClass(); | ||
|
||
builder.Register(() => new [] | ||
{ | ||
instance, | ||
instance2 | ||
}); | ||
|
||
CollectionAssert.Contains(builder.BuildAll<SomeClass>(), instance); | ||
CollectionAssert.Contains(builder.BuildAll<SomeClass>(), instance2); | ||
} | ||
|
||
[Test] | ||
public void ShouldResolveRegisteredObjectFuncs() | ||
{ | ||
var builder = new FakeBuilder(); | ||
|
||
object instance = new SomeClass(); | ||
|
||
builder.Register(typeof(SomeClass),() => instance); | ||
|
||
Assert.AreSame(instance, builder.Build<SomeClass>()); | ||
} | ||
|
||
[Test] | ||
public void ShouldResolveRegisteredObjectFuncArrays() | ||
{ | ||
var builder = new FakeBuilder(); | ||
|
||
var instance = new SomeClass(); | ||
var instance2 = new SomeClass(); | ||
|
||
builder.Register(typeof(SomeClass), () => new object[] | ||
{ | ||
instance, | ||
instance2 | ||
}); | ||
|
||
CollectionAssert.Contains(builder.BuildAll<SomeClass>(), instance); | ||
CollectionAssert.Contains(builder.BuildAll<SomeClass>(), instance2); | ||
} | ||
|
||
class SomeClass | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters