public void CanDeleteProject()
        {
            using (var dbFactory = new TestDbConnectionFactory())
                using (var conn = dbFactory.Database())
                {
                    var project = new Project {
                        Id = 1, Name = "Test"
                    };

                    ProjectActions
                    .CreateProject(project)
                    .Function(conn);

                    ProjectActions
                    .DeleteProject(project.Id)
                    .Action(conn);

                    var get = ProjectActions
                              .GetProject(project.Id)
                              .Function(conn);

                    Assert.Null(get);
                }
        }
        public GlobalJsonResult <EmptyResult> Delete(int id)
        {
            dispatcher.Dispatch(ProjectActions.DeleteProject(id));

            return(GlobalJsonResult <EmptyResult> .Success(System.Net.HttpStatusCode.NoContent));
        }