private void SetupMockToCheckIfCallUpdateProviderWithStatus(RoundAuctionStatusTypeEnum status) { var providers = new Providers(_originalListOfProviders); _roundAuctionsStatusMock.Setup(x => x.UpdateProviders(providers)); _roundAuctionStatusFactoryMock.Setup(x => x.Make(status, It.IsAny <Auction>(), It.IsAny <RoundAuction>())).Returns(_roundAuctionsStatusMock.Object); }
public Entities.RoundAuctionsStatus Make(RoundAuctionStatusTypeEnum type, Auction auction, RoundAuction newRound = null) { switch (type) { case RoundAuctionStatusTypeEnum.HasRound: return(new RoundAuctionsStatusHasRounds(auction, newRound)); case RoundAuctionStatusTypeEnum.HasNotRound: return(new RoundAuctionsStatusHasNotRounds(auction)); default: break; } return(new RoundAuctionsStatusHasNotRounds(auction)); }