public void Repository_can_create_custom_view() { var r = new GizmoRepository(_sx); r.CustomView("CustomView0"); Assert.That(r.Design.Views.ContainsKey("CustomView0")); }
public void Repository_can_update_existing_custom_view() { var r = new GizmoRepository(_sx); r.CustomView("CustomView0"); r.CustomView2("CustomView0"); Assert.That(r.Design.Views["CustomView0"].Map.Contains("emit(doc._id, doc._id);")); }