Skip to content

Commit

Permalink
static method without parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lbargaoanu authored Aug 19, 2017
1 parent 4d45846 commit b61328f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UnitTests/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ public class Bar
public class FooDto
{
public string BarSimpleName { get; set; }
public Guid Value { get; set; }
}

protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.IncludeSourceExtensionMethods(typeof(BarExtensions));
cfg.CreateMap<Foo, FooDto>();
cfg.CreateMap<Foo, FooDto>().ForMember(d=>d.Value, o=>o.MapFrom(s=>Guid.New());
});

[Fact]
Expand Down

0 comments on commit b61328f

Please sign in to comment.