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
open canopy | |
open runner | |
start firefox | |
"Go to fona and add to basket" &&& fun _ -> | |
url "http://www.fona.dk" | |
let numberOfLineItems = (elements "#miniCartProducts li").Length | |
let total = read ".miniCartValue" |
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
[<CLIMutable>] | |
type Person = { Name : string; Age : int } | |
//Nuget: ImpromptuInterface.FSharp | |
use conn = new SqlCeConnection("Data Source=C:\Databases\MyDB.sdf;Persist Security Info=False;") | |
conn.Open() | |
let result = | |
conn.Query("SELECT * FROM People") |
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
namespace Library1.Tests | |
open NUnit.Framework | |
open FsUnit | |
open Foq | |
type person = {Name : string ; PhoneNumber: string} | |
type IPhoneNumberRepository = | |
abstract member FindPhoneNumber : string -> string |
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
public class ServiceBootstrapper : NancyBootstrapperBase<IWindsorContainer> | |
{ | |
bool _modulesRegistered; | |
protected override IEnumerable<IStartup> GetStartupTasks() | |
{ | |
return ApplicationContainer.ResolveAll<IStartup>(); | |
} | |
protected override INancyEngine GetEngineInternal() |
NewerOlder