# Marnee Dearman (KG7SIO)

# An IVR with Neo4j and F# -- Part 2 A

### Modeling the IVR domain with algebraic data types

## Why am I doing this?

In part 1 I talked about getting started on my graph-based IVR system. I started with modeling the authentication sub-graph. I wrote some Cypher queries to build the graph in Neo4j. In this part I am going to talk about how I modeled the graph in F# using algebraic data types, namely discriminated unions and tuples.

This . . .

Posted in: neo4jgraphsivrxunitfsunittestingfunctional programmingf#algebraic data typestuplesdiscriminated union

# F# and xUnit Class Fixtures

### Startup and teardown test modules

## Why am I doing this?

I use a combination of F#, xUnit, and FsUnit to do my unit testing on .NET. I want to run a database setup script at the start of some test modules. In this case, according to the xUnit documentation, I need to use IClassFixture (or ICollectionFixture). I recently wanted to figure out how to make this happen in my unit . . .

Cover image credit: http://sciencevsmagic.net/fractal/#0060,0090,1,1,0,0,1