public void should_return_listallspecification()
        {
            var args = new ListAllTaskArgs();
            var converter = new SpecificationsConverter();

            var result = converter.GetQuerySpecification(args);

            result.Should().BeOfType<ListAllServiceSpecification>();
        }
Пример #2
0
        public void should_get_all_tasks_from_server()
        {
            var args = new ListAllTaskArgs();
            var spec = new ListAllServiceSpecification();
            var tasks = new List<ClientTask>();

            specConverter.GetQuerySpecification(args).Returns(spec);
            todoList.GetTasks(spec).Returns(tasks);

            var result = service.GetTasks(args);

            result.Should().BeEquivalentTo(tasks);
        }