public void ShouldThrowExceptionIfShareTypeStatusIsFalse() { SalesService salesService = new SalesService( this.operationTableRepository, this.balanceTableRepository, this.blockedMoneyTableRepository, this.sharesNumberTableRepository, this.blockedSharesNumberTableRepository); var share = new ShareEntity() { Id = 3, CompanyName = "testCompany", CreatedAt = DateTime.Now, Type = new ShareTypeEntity() { Id = 5, Cost = 1000.0M, Name = "typename", Status = false }, Status = true }; // Act salesService.CheckShareAndShareTypeStatuses(share); // Assert }