C# Class Lending.Domain.Model.Library

Inheritance: Joshilewis.Cqrs.Aggregate
Afficher le fichier Open project: joshilewis/lending Class Usage Examples

Méthodes publiques

Méthode Description
AcceptLink ( System.Guid processId, LibraryId requestingLibraryId ) : void
AddBookToLibrary ( System.Guid processId, string title, string author, string isbn, int publishYear ) : void
CheckUserAuthorized ( AdministratorId administratorId ) : void
CompleteLink ( System.Guid processId, LibraryId acceptingLibraryId ) : void
CreateFromHistory ( IEnumerable events ) : Library
Open ( System.Guid processId, LibraryId id, string name, AdministratorId adminId ) : Library
ReceiveLinkRequest ( System.Guid processId, LibraryId sourceLibraryId ) : void
RemoveBookFromLibrary ( System.Guid processId, string title, string author, string isbn, int publishYear ) : void
RequestLink ( System.Guid processId, LibraryId desinationLibraryId ) : void

Méthodes protégées

Méthode Description
Fail ( AdministratorId administratorId ) : void
Library ( ) : System
Library ( System.Guid processId, LibraryId id, string name, AdministratorId administratorId ) : System
When ( BookAddedToLibrary @event ) : void
When ( BookRemovedFromLibrary @event ) : void
When ( LibraryOpened @event ) : void
When ( LinkAccepted @event ) : void
When ( LinkCompleted @event ) : void
When ( LinkRequestReceived @event ) : void
When ( LinkRequested @event ) : void

Method Details

AcceptLink() public méthode

public AcceptLink ( System.Guid processId, LibraryId requestingLibraryId ) : void
processId System.Guid
requestingLibraryId LibraryId
Résultat void

AddBookToLibrary() public méthode

public AddBookToLibrary ( System.Guid processId, string title, string author, string isbn, int publishYear ) : void
processId System.Guid
title string
author string
isbn string
publishYear int
Résultat void

CheckUserAuthorized() public méthode

public CheckUserAuthorized ( AdministratorId administratorId ) : void
administratorId AdministratorId
Résultat void

CompleteLink() public méthode

public CompleteLink ( System.Guid processId, LibraryId acceptingLibraryId ) : void
processId System.Guid
acceptingLibraryId LibraryId
Résultat void

CreateFromHistory() public static méthode

public static CreateFromHistory ( IEnumerable events ) : Library
events IEnumerable
Résultat Library

Fail() protected méthode

protected Fail ( AdministratorId administratorId ) : void
administratorId AdministratorId
Résultat void

Library() protected méthode

protected Library ( ) : System
Résultat System

Library() protected méthode

protected Library ( System.Guid processId, LibraryId id, string name, AdministratorId administratorId ) : System
processId System.Guid
id LibraryId
name string
administratorId AdministratorId
Résultat System

Open() public static méthode

public static Open ( System.Guid processId, LibraryId id, string name, AdministratorId adminId ) : Library
processId System.Guid
id LibraryId
name string
adminId AdministratorId
Résultat Library

ReceiveLinkRequest() public méthode

public ReceiveLinkRequest ( System.Guid processId, LibraryId sourceLibraryId ) : void
processId System.Guid
sourceLibraryId LibraryId
Résultat void

RemoveBookFromLibrary() public méthode

public RemoveBookFromLibrary ( System.Guid processId, string title, string author, string isbn, int publishYear ) : void
processId System.Guid
title string
author string
isbn string
publishYear int
Résultat void

RequestLink() public méthode

public RequestLink ( System.Guid processId, LibraryId desinationLibraryId ) : void
processId System.Guid
desinationLibraryId LibraryId
Résultat void

When() protected méthode

protected When ( BookAddedToLibrary @event ) : void
@event Lending.Domain.AddBookToLibrary.BookAddedToLibrary
Résultat void

When() protected méthode

protected When ( BookRemovedFromLibrary @event ) : void
@event Lending.Domain.RemoveBookFromLibrary.BookRemovedFromLibrary
Résultat void

When() protected méthode

protected When ( LibraryOpened @event ) : void
@event Lending.Domain.OpenLibrary.LibraryOpened
Résultat void

When() protected méthode

protected When ( LinkAccepted @event ) : void
@event Lending.Domain.AcceptLink.LinkAccepted
Résultat void

When() protected méthode

protected When ( LinkCompleted @event ) : void
@event Lending.Domain.AcceptLink.LinkCompleted
Résultat void

When() protected méthode

protected When ( LinkRequestReceived @event ) : void
@event Lending.Domain.RequestLink.LinkRequestReceived
Résultat void

When() protected méthode

protected When ( LinkRequested @event ) : void
@event Lending.Domain.RequestLink.LinkRequested
Résultat void