C# Class MyAuctionSite.Backend.Auctions.Auction

Inheritance: Infrastructure.AggregateRoot
ファイルを表示 Open project: andreasohlund/Blog

Public Methods

Method Description
Auction ( ) : System
Auction ( System.Guid auctionId, string description, System.DateTime endsAt, System.Guid userId ) : System
Close ( System.DateTime closeAt ) : void
PlaceBid ( System.Guid bidId, System.Guid userId, double amount, System.DateTime bidPlacedAt ) : void

Private Methods

Method Description
Apply ( AuctionClosed @event ) : void
Apply ( AuctionRegistered @event ) : void
Apply ( BidPlaced @event ) : void
Apply ( BidRejected @event ) : void

Method Details

Auction() public method

public Auction ( ) : System
return System

Auction() public method

public Auction ( System.Guid auctionId, string description, System.DateTime endsAt, System.Guid userId ) : System
auctionId System.Guid
description string
endsAt System.DateTime
userId System.Guid
return System

Close() public method

public Close ( System.DateTime closeAt ) : void
closeAt System.DateTime
return void

PlaceBid() public method

public PlaceBid ( System.Guid bidId, System.Guid userId, double amount, System.DateTime bidPlacedAt ) : void
bidId System.Guid
userId System.Guid
amount double
bidPlacedAt System.DateTime
return void