Implement basic code contracts

This commit is contained in:
JustArchi
2019-01-10 23:44:32 +01:00
parent 0f2a816b92
commit 192656cd02
43 changed files with 213 additions and 64 deletions

View File

@@ -25,6 +25,7 @@ using System.Threading;
using System.Threading.Tasks;
using ArchiSteamFarm.Localization;
using HtmlAgilityPack;
using JetBrains.Annotations;
namespace ArchiSteamFarm {
internal sealed class SteamSaleEvent : IDisposable {
@@ -33,7 +34,7 @@ namespace ArchiSteamFarm {
private readonly Bot Bot;
private readonly Timer SaleEventTimer;
internal SteamSaleEvent(Bot bot) {
internal SteamSaleEvent([NotNull] Bot bot) {
Bot = bot ?? throw new ArgumentNullException(nameof(bot));
SaleEventTimer = new Timer(