Skip to content

MyApp.Domain — filtered API export

Public API surface rendered deterministically from build-time XML doc comments (ADR-0022). Test projects and infrastructure namespaces are excluded; <spec> tags trace members to requirements and are verified against the traceability metadata contract (ADR-0019). Regenerate with scripts/generate-dotnet-doc-export.py — do not edit.

ITodoRepository

MyApp.Domain.ITodoRepository

Persistence contract for todo items.

Traces to: moscow:M-001

Add(TodoItem)

M:MyApp.Domain.ITodoRepository.Add(MyApp.Domain.TodoItem)

Adds a new todo item to the store.

  • item — The item to add.

Find(Guid)

M:MyApp.Domain.ITodoRepository.Find(System.Guid)

Returns the todo item with the given identifier, if present.

  • id — The identifier to look up.
  • Returns — The matching item, or null when no item exists.

GetAll

M:MyApp.Domain.ITodoRepository.GetAll

Returns all todo items currently in the store.

  • Returns — An ordered, read-only view of every stored item.

Remove(Guid)

M:MyApp.Domain.ITodoRepository.Remove(System.Guid)

Removes the todo item with the given identifier from the store.

  • id — The identifier of the item to remove.
  • Returns — true when an item was removed; otherwise false.

Update(TodoItem)

M:MyApp.Domain.ITodoRepository.Update(MyApp.Domain.TodoItem)

Replaces a stored todo item with an updated copy.

  • item — The item to update; identified by Id.

TodoItem

MyApp.Domain.TodoItem

A single todo item in the example application.

  • Id — The stable identifier of the item.
  • Title — The human-readable title of the item.
  • IsCompleted — A value indicating whether the item is done.

Traces to: moscow:M-001

constructor(Guid, string, bool)

M:MyApp.Domain.TodoItem.#ctor(System.Guid,System.String,System.Boolean)

A single todo item in the example application.

  • Id — The stable identifier of the item.
  • Title — The human-readable title of the item.
  • IsCompleted — A value indicating whether the item is done.
  • Traces to — moscow:M-001

Create(string)

M:MyApp.Domain.TodoItem.Create(System.String)

Creates a new, uncompleted todo item with a fresh identifier.

  • title — The title of the item.
  • Returns — A new TodoItem.
  • Throws ArgumentException — Thrown when title is null or whitespace.

WithCompletion(bool)

M:MyApp.Domain.TodoItem.WithCompletion(System.Boolean)

Returns a copy of this item marked as completed or uncompleted.

  • isCompleted — The new completion state.
  • Returns — A new TodoItem with the given completion state.

Id

P:MyApp.Domain.TodoItem.Id

The stable identifier of the item.

IsCompleted

P:MyApp.Domain.TodoItem.IsCompleted

A value indicating whether the item is done.

Title

P:MyApp.Domain.TodoItem.Title

The human-readable title of the item.