C# Class Lending.Domain.Model.Library

Inheritance: Joshilewis.Cqrs.Aggregate
Mostrar archivo Open project: joshilewis/lending Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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 method

public AcceptLink ( System.Guid processId, LibraryId requestingLibraryId ) : void
processId System.Guid
requestingLibraryId LibraryId
return void

AddBookToLibrary() public method

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
return void

CheckUserAuthorized() public method

public CheckUserAuthorized ( AdministratorId administratorId ) : void
administratorId AdministratorId
return void

CompleteLink() public method

public CompleteLink ( System.Guid processId, LibraryId acceptingLibraryId ) : void
processId System.Guid
acceptingLibraryId LibraryId
return void

CreateFromHistory() public static method

public static CreateFromHistory ( IEnumerable events ) : Library
events IEnumerable
return Library

Fail() protected method

protected Fail ( AdministratorId administratorId ) : void
administratorId AdministratorId
return void

Library() protected method

protected Library ( ) : System
return System

Library() protected method

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

Open() public static method

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

ReceiveLinkRequest() public method

public ReceiveLinkRequest ( System.Guid processId, LibraryId sourceLibraryId ) : void
processId System.Guid
sourceLibraryId LibraryId
return void

RemoveBookFromLibrary() public method

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
return void

RequestLink() public method

public RequestLink ( System.Guid processId, LibraryId desinationLibraryId ) : void
processId System.Guid
desinationLibraryId LibraryId
return void

When() protected method

protected When ( BookAddedToLibrary @event ) : void
@event Lending.Domain.AddBookToLibrary.BookAddedToLibrary
return void

When() protected method

protected When ( BookRemovedFromLibrary @event ) : void
@event Lending.Domain.RemoveBookFromLibrary.BookRemovedFromLibrary
return void

When() protected method

protected When ( LibraryOpened @event ) : void
@event Lending.Domain.OpenLibrary.LibraryOpened
return void

When() protected method

protected When ( LinkAccepted @event ) : void
@event Lending.Domain.AcceptLink.LinkAccepted
return void

When() protected method

protected When ( LinkCompleted @event ) : void
@event Lending.Domain.AcceptLink.LinkCompleted
return void

When() protected method

protected When ( LinkRequestReceived @event ) : void
@event Lending.Domain.RequestLink.LinkRequestReceived
return void

When() protected method

protected When ( LinkRequested @event ) : void
@event Lending.Domain.RequestLink.LinkRequested
return void