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
namespace YourNamespaceHere | |
open System | |
open System.Collections.ObjectModel | |
open System.ComponentModel | |
open Microsoft.FSharp.Quotations | |
open Microsoft.FSharp.Quotations.Patterns | |
type ViewModelBase() = | |
let propertyChanged = new Event<_, _>() | |
let toPropName(query : Expr) = |
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
namespace YourNameSpaceHere | |
open System.ComponentModel | |
type ViewModelBase() = | |
let propertyChanged = new Event<_, _>() | |
interface INotifyPropertyChanged with | |
[<CLIEvent>] | |
member this.PropertyChanged = propertyChanged.Publish |
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
namespace FooBarIde | |
{ | |
class InsertDateHandler : CommandHandler | |
{ | |
protected override void Run() | |
{ | |
Document doc = IdeApp.Workbench.ActiveDocument; | |
try | |
{ |
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
namespace ForegroundService | |
open System | |
open Android.App | |
open Android.Util | |
open Android.Content | |
open Android.OS | |
open Android.Runtime | |
open Android.Views | |
open Android.Widget |
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
namespace JobScheduleSample | |
open System | |
open Android.App | |
open Android.Content | |
open Android.OS | |
open Android.Runtime | |
open Android.Views | |
open Android.Widget | |
open Android.App.Job |
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
namespace FsharpMvvmCross.UITests | |
open System | |
open System.IO | |
open Xamarin.UITest | |
open Xamarin.UITest.Queries | |
open NUnit.Framework | |
open TickSpec | |
open System.Reflection | |
open System.Runtime.ExceptionServices |
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
namespace FsharpMvvmCross.UITests | |
open System | |
open NUnit.Framework | |
open Xamarin.UITest | |
open Xamarin.UITest.Queries | |
open TickSpec | |
module LoginScreen = |
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
Feature: Login Screen works correctly | |
@android_ios | |
Scenario 1: I can login to the app with the correct credentials | |
Given I enter the username admin | |
And I enter the password admin | |
When I tap login | |
Then I should be on the Notes screen |
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
module NotesService | |
open Newtonsoft.Json | |
open System | |
open FSharp.Data | |
// This type was used for simplicty. | |
type RestApiResponse = { | |
StatusCode:int | |
Body:string | |
Headers: Map<string,string> |
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
namespace FsharpMvvmCross.Tests | |
open System | |
open NUnit.Framework | |
open FsUnit | |
open FSharp.Data | |
open FsharpMvvmCross | |
[<TestFixture>] | |
type NoteServiceTests() = |
OlderNewer