-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gary Woodfine
authored and
Gary Woodfine
committed
Feb 5, 2018
1 parent
76c0ff5
commit 202faab
Showing
6 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
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
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,38 @@ | ||
using AutoMapper; | ||
using DomainObjects; | ||
using EntityObjects; | ||
using FizzWare.NBuilder; | ||
using System; | ||
using Xunit; | ||
|
||
namespace MapperTests | ||
{ | ||
[Collection("Mapping")] | ||
public class SimpleDomainObjectTests :IDisposable | ||
{ | ||
private readonly MapperFixture _mapperFixture; | ||
public SimpleDomainObjectTests(MapperFixture fixture) | ||
{ | ||
_mapperFixture = fixture; | ||
|
||
} | ||
|
||
[Fact] | ||
public void ShouldMapSimpleObject() | ||
{ | ||
var testobj = Builder<SimpleDomainObject>.CreateNew().Build(); | ||
var ent = Mapper.Map<SimpleEntity>(testobj); | ||
|
||
Assert.NotNull(ent); | ||
Assert.IsAssignableFrom<SimpleEntity>(ent); | ||
Assert.Equal(ent.Name, testobj.Name); | ||
} | ||
|
||
|
||
|
||
public void Dispose() | ||
{ | ||
_mapperFixture?.Dispose(); | ||
} | ||
} | ||
} |
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,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Xunit; | ||
|
||
namespace MapperTests | ||
{ | ||
[CollectionDefinition("Mapping")] | ||
public class TestCollection :ICollectionFixture<MapperFixture> | ||
{ | ||
} | ||
} |
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,20 @@ | ||
+ InnerException {System.Exception: Call to Node module failed with error: Error: Cannot find module './wwwroot/dist/vendor-manifest.json' | ||
at Function.Module._resolveFilename (module.js:469:15) | ||
at Function.Module._load (module.js:417:25) | ||
at Module.require (module.js:497:17) | ||
at require (internal/module.js:20:19) | ||
at module.exports (C:\code\prototype\SMS\webpack.config.js:36:27) | ||
at createWebpackDevServer (C:\code\prototype\SMS\node_modules\aspnet-webpack\WebpackDevMiddleware.js:176:31) | ||
at createWebpackDevServer (C:\Users\garyw\AppData\Local\Temp\tmp7A46.tmp:74:50) | ||
at C:\Users\garyw\AppData\Local\Temp\tmp7B31.tmp:113:19 | ||
at IncomingMessage.<anonymous> (C:\Users\garyw\AppData\Local\Temp\tmp7B31.tmp:132:38) | ||
at emitNone (events.js:86:13) | ||
at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.<InvokeExportAsync>d__7`1.MoveNext() | ||
--- End of stack trace from previous location where exception was thrown --- | ||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | ||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | ||
at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.<InvokeExportAsync>d__14`1.MoveNext() | ||
--- End of stack trace from previous location where exception was thrown --- | ||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | ||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | ||
at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.<InvokeExportWithPossibleRetryAsync>d__10`1.MoveNext()} System.Exception |