public async Task CreateText_Valid() { // Setup var controller = CreateController(); var model = new MockTextModel().Valid(); RendererShouldReturn <object>(defaultSuccessReturnData); // Perform var response = await controller.Text(model); // Assert AssertIsOk(response); }
public async Task CreateText_Invalid() { // Setup var controller = CreateController(); var model = new MockTextModel().Invalid(); RendererShouldReturn <object>(); // Perform var response = await controller.Text(model); // Assert AssertIsBadRequest(response); }