Required contract
Only valid order-state transitions should be accepted; the portfolio runs independent JavaScript examples of this rule.
ENGINEERING EVIDENCE / VERIFIED SCOPE
.NET commerce design and demonstrable state rules
A documented ASP.NET Core MVC commerce structure, presented separately from runnable JavaScript teaching examples.
Review scope: No public CraftHub repository or hosted .NET backend was verified. These notes distinguish architecture specifications from runnable source evidence.
01 / SYSTEM FLOW
This is a conceptual, source-scoped diagram—not a packet trace, running backend or measured infrastructure topology.
Documented presentation design
Controllers and views coordinate catalog, cart and account journeys.
Documented C# design
Products, inventory, cart, order header and order detail describe business state.
Documented EF Core design
Relational mappings and SQL Server are the proposed persistence boundary.
Documented integration
Identity and Stripe Checkout are specified integration boundaries.
02 / EXPECTED BEHAVIOUR
Only valid order-state transitions should be accepted; the portfolio runs independent JavaScript examples of this rule.
Invalid quantities and impossible transitions are rejected by the portfolio demo, not by a verified .NET service.
Design decision: Use MVC for server-rendered workflows and separate persistence responsibilities from order/checkout coordination.
Tradeoff: Server-rendered architecture can simplify flow control but requires clear data boundaries and dependable integration tests.
03 / SOURCE & PROVENANCE
Verbatim from this portfolio’s versioned JavaScript teaching engine. It is NOT source from a deployed CraftHub .NET backend.
src/demo-engine.jsexport function transitionOrder(state,action,quantity=state.quantity){
const definition=ACTIONS[action];
if(!definition)return {...state,note:'Unknown action. No change was made.'};
if(!definition.from.includes(state.status))return {...state,note:'Blocked: '+action+' is not allowed when the order is '+state.status+'.'};
if(action==='submit'){
if(!Number.isInteger(quantity)||quantity<1||quantity>PRODUCT.stock)return {...state,note:'Validation failed: quantity must be a whole number between 1 and '+PRODUCT.stock+'.'};
return {...state,quantity,status:definition.to,stockRemaining:state.stockRemaining-quantity,history:[...state.history,definition.to],note:'Order accepted in this simulation. No real order was placed.'};
}
const nextStock=action==='cancel'&&state.status==='Awaiting payment'?state.stockRemaining+state.quantity:state.stockRemaining;
return {...state,stockRemaining:nextStock,status:definition.to,history:[...state.history,definition.to],note:action==='confirm'?'Payment confirmation simulated only. No charge was made.':action==='dispatch'?'Dispatch simulated; no parcel or carrier was contacted.':'Transition applied to temporary in-memory state.'};
}This is a browser-based JavaScript teaching simulation, NOT source from a deployed CraftHub .NET backend, and not a live payment flow.
Inspect the referenced source| Area | Source observation | Supports | Does not prove |
|---|---|---|---|
| MVC designDOCUMENTED DESIGN | CraftHub project descriptionThe case study describes ASP.NET Core MVC controllers and Razor views for catalog and account journeys. | There is an articulated presentation and request-handling architecture. | This description is not a verified excerpt from a public CraftHub repository. |
| Relational schemaDOCUMENTED DESIGN | CraftHub project specificationProduct, category, inventory, cart and order entities are documented with EF Core and SQL Server. | Relevant data relationships and business objects can be discussed. | No running database, migration output or production data is shown. |
| Order simulationVERIFIABLE PORTFOLIO DEMO | src/demo-engine.jsThis portfolio contains real JavaScript functions for order transitions and an educational API simulation. | The portfolio demonstration has inspectable business-state logic. | The JavaScript functions are not claimed as CraftHub C# source. |
| Test evidenceVERIFIABLE PORTFOLIO DEMO | tests/phase28.test.mjsThe portfolio has repeatable Node tests for the educational order and API demonstration. | The linked simulation can be tested deterministically. | These tests do not validate an actual hosted CraftHub checkout. |
04 / VALIDATION & NEXT CHECK
Nine pure, deterministic portfolio demonstration checks are re-executed during the build. These do not test a deployed .NET system.
Explore reproducible portfolio proof checksProject specification only. No public .NET source, authentic CraftHub screenshot, live checkout or payment history verified.
Next verification: Publish a safe read-only source excerpt or sanitized migration from CraftHub if its original repository becomes available for review.
Architecture is based on the project specification. The runnable example below belongs to this portfolio, not CraftHub C# source.