public void AsJson_WithModel_ShouldReturnAResponseWithStatusCodeOk() { var response = _factory.AsJson(new SimpleModel { Message = "Hello, world!", Count = 2 }); Assert.That(response.StatusCode, Is.EqualTo(200)); }