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
function getCampaigns() { | |
var query = breeze.EntityQuery.from(...) | |
.orderBy(...); | |
return mgr... | |
} |
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
breeze.NamingConvention.camelCase.setAsDefault(); | |
var mgr = new breeze.EntityManager('endpoint here'); |
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
<section> | |
<h2 class="page-title"></h2> | |
</section> |
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
using System; | |
using System.Collections; | |
using System.Data.SqlTypes; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
<documentParts xmlns="http://KC.Dagobah.Web/LocalDocumentAttributeExtension"> | |
<documentPart variantIndex="0" documentPartIndex="0"> | |
<fileName>Mit dokument 1.docx</fileName> | |
<byteArray><![CDATA[ BASE64 ENCODED FILINDHOLD HER ]]></byteArray> | |
</documentPart> | |
<documentPart variantIndex="0" documentPartIndex="1"> | |
<fileName>Mit dokument 2.docx</fileName> | |
<byteArray><![CDATA[ BASE64 ENCODED FILINDHOLD HER ]]></byteArray> | |
</documentPart> | |
</documentParts> |
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
[TestMethod] | |
public void Select_and_addrange_should_maintain_element_order() | |
{ | |
var array = new[] {"3", "5", "1", "9", "2"}; | |
var list = new List<int>(); | |
list.AddRange(array.Select(s => int.Parse(s))); | |
Assert.AreEqual(3, list[0]); | |
Assert.AreEqual(5, list[1]); |
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
private static XmlElement[] CreateLocalExtensionXmlElement() | |
{ | |
const string xml = "<documentParts><documentPart variantIndex=\"{0}\" documentPartIndex=\"{1}\" documentPartPropertyText=\"{2}\"><fileName>{3}</fileName><byteArray><![CDATA[{4}]]></byteArray></documentPart></documentParts>"; | |
var xmlDocument = new XmlDocument(); | |
xmlDocument.LoadXml(string.Format(xml, 0, 0, DocumentPartPropertyText, "Lorem ipsum dolor sit amet.pdf", CreateFile())); | |
return new[] {xmlDocument.DocumentElement}; | |
} |
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
[TestMethod] | |
public void Property_DocumentAttributes_is_mapped() | |
{ | |
// Arrange | |
var resultFromChild = new Attributes(); | |
A.CallTo(() => _attributesToDocumentAttributesMapper.Map(A<AttributListeType>.Ignored)) | |
.Returns(resultFromChild); | |
// Act | |
var document = _opretInputTypeToDocumentMapper.Map(new OpretInputType()); |
NewerOlder