You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One feature that is missing is support for abstract classes.
I think code says more than 1000 words:
public abstract class Request {
public string Message { get; set; }
}
public class GetCustomerRequest : Request {
public Guid CustomerId { get; set; }
}
public class GetDepartmentRequest : Request {
public Guid DepartmentId { get; set; }
}
var request = Slapper.AutoMapper.Map<Request>(dictionary);
I implemented support for this for my current project, but I am not sure if that is the direction you want to take. Anyway you can find my code here: kkuepper@7434a71
@towa Can you create one or more unit tests to cover this new functionality and to demonstrate how it would be used? I think I understand what you are going for but an example would make it more clear for me.
Also I think the feature you've added could be used for interfaces as well so you may want to rename the interface IAbstractTypeActivator to something more generic such as an ITypeActivator> or something similar.
FYI, if you wrap your code samples in triple backticks, then you can add the < and > signs.
Activity
randyburden commentedon Dec 2, 2013
@towa Can you create one or more unit tests to cover this new functionality and to demonstrate how it would be used? I think I understand what you are going for but an example would make it more clear for me.
Also I think the feature you've added could be used for interfaces as well so you may want to rename the interface
IAbstractTypeActivatorto something more generic such as anITypeActivator>or something similar.FYI, if you wrap your code samples in triple backticks, then you can add the
<and>signs.odelvalle commentedon Jun 12, 2016
Pull Request #38, TypeActivator inlcuded