This file contains hidden or 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
| public class MappingProfile : Profile | |
| { | |
| public MappingProfile() | |
| { | |
| CreateMap<Worklog, WorklogDto>() | |
| .ForMember(dest => dest.IssueDto, opt => opt.MapFrom(x => x.Issue)); | |
| } | |
| } |
This file contains hidden or 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
| it('should equal one, function(){ | |
| // Test case here | |
| }); |
This file contains hidden or 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
| describe('the test suite name wich describes the group the best', function(){ | |
| // can nest more describe() | |
| // or tests | |
| }); |
This file contains hidden or 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
| "scripts": { | |
| "test": "mocha" | |
| }, |
This file contains hidden or 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
| public class FormController : SitecoreController | |
| { | |
| public FormController() | |
| : this((IRepository<FormModel>) | |
| Factory.CreateObject(Sitecore.Forms.Mvc.Constants.FormRepository, true), (IAutoMapper<IFormModel, FormViewModel>) | |
| Factory.CreateObject(Sitecore.Forms.Mvc.Constants.FormAutoMapper, true), (IFormProcessor<FormModel>) | |
| Factory.CreateObject(Sitecore.Forms.Mvc.Constants.FormProcessor, true), DependenciesManager.AnalyticsTracker) | |
| { | |
| } |
This file contains hidden or 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
| var container = new Container(); | |
| container.Options.ConstructorResolutionBehavior = new DefaultFirstConstructorBehavior(container); |
This file contains hidden or 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
| public class DefaultFirstConstructorBehavior : IConstructorResolutionBehavior | |
| { | |
| private readonly IConstructorResolutionBehavior fallbackBehavior; | |
| public DefaultFirstConstructorBehavior(Container container) | |
| { | |
| this.fallbackBehavior = container.Options.ConstructorResolutionBehavior; | |
| } | |
| public ConstructorInfo GetConstructor(Type serviceType, Type implementationType) |
This file contains hidden or 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
| mutation{ | |
| addUser(firstName: "Misha", age: 7){ | |
| id | |
| firstName | |
| age | |
| } | |
| } |
This file contains hidden or 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
| <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
| <sitecore> | |
| <settings> | |
| <setting name="Analytics.PerformLookup"> | |
| <patch:attribute name="value">false</patch:attribute> | |
| </setting> | |
| </settings> | |
| </sitecore> | |
| </configuration> |
This file contains hidden or 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
| <h1 color="green">Headline</h1> | |
| React.createElement("h1", {color:"green"}, "Headline") |
OlderNewer