---
# System prepended metadata

title: 'Building out C+ sending flow - Tues/Wed 3rd-4th Nov, 2020'
tags: [C+, factory, programmingjournal, mocks, '2020', sendingflow, yup]

---

# Building out C+ sending flow - Tues/Wed 3rd-4th Nov, 2020

Built a lot of components and logic related to C+'s new way of sending recognition to colleagues.

Fairly standard, with not much to highlight.

I did a lot of it with mocks again. One thing I discovered was you have to mock **all** properties of a type, even optional ones, otherwise `MockedProvider` will throw an error or just not return the data properly.

I'm starting to now add [Yup](https://github.com/jquense/yup) validation to the sending flow.

###### tags: `programmingjournal` `2020` `C+` `sendingflow` `yup` `mocks` `factory`