Exemplo n.º 1
0
        public void CanAddTodo()
        {
            var store = new Store();

            const string expectedName = "go to the gym";
            var          controller   = new TodoController(store);
            var          addResult    = controller.Add(expectedName);

            (addResult.Data as IPersistable).Id.Should().NotBeEmpty();

            store.Get <Todo>(1, 10).Should().ContainSingle(x => x.Name.Equals(expectedName));
        }