Skip to content

Instantly share code, notes, and snippets.

@JamesBender
JamesBender / TBSTypeModel
Created February 18, 2014 21:23
JustCode template to create a Telerik Backend Services Type Model
using Telerik.Everlive.Sdk.Core.Model.Base;
namespace $1=SUGGEST_NAMESPACE()$
{
$2=SELECT(public,internal,protected,private)$ class $3=GET_FILE_NAME()$ : DataItem
{
|
}
}
@JamesBender
JamesBender / TelerikBackendServicesProperty
Last active August 29, 2015 13:56
JustCode code template to create fields that will map to Telerik Backend Services type fields.
Bote: Create a C# code tempate, set the availability at "At type level"
private $1$ _$2$;
public $1$ $3$
{
get
{
return _$2$;
}
@JamesBender
JamesBender / ICommonGameNetworkControl.cs
Created November 11, 2015 22:13
ICommonGameNetworkControl and supporting classes for TDD-PreCon
using System;
using System.Collections.Generic;
namespace GameNetworkInterfaces
{
public interface ICommonGameNetworkControl
{
Guid Login(string username, string password);
bool Logout(Guid sessionToken);
int PostScoreToLeaderboard(Guid sessionToken, Guid gameToken, int score);
using System;
using System.Linq;
using NUnit.Framework;
namespace ThirtyDaysOfTDD.UnitTests
{
[TestFixture]
public class StringUtilsTest
{
public void ShouldBeAbleToCountNumberOfLettersInSimpleSentence()
using System;
using System.Linq;
using NUnit.Framework;
namespace ThirtyDaysOfTDD.UnitTests
{
[TestFixture]
public class StringUtilsTest
{
[Test]
using System;
uisng System.Collections.Generic;
using System.Linq;
uisng System.Text;
using System.Threading.Tasks;
namespace ThirtyDaysOfTDD.UnitTests
{
[TestFixture]
public class StringUtilsTest
using System;
using System.Linq;
using NUnit.Framework;
namespace ThirtyDaysOfTDD.UnitTests
{
[TestFixture]
public class StringUtilsTest
{
namespace ThirtyDaysOfTDD.UnitTests
{
public class StringUtils
{
}
}
using System;
namespace ThirtyDaysOfTDD.UnitTests
{
public class StringUtils
{
public object FindNumberOfOccurences(string sentenceToScan, string characterToScanFor)
{
// TODO: Implement this method
throw new NotImplementedException();
using System;
using System.Linq;
using NUnit.Framework;
namespace ThirtyDaysOfTDD.UnitTests
{
[TestFixture]
public class StringUtilsTest
{
[Test]