public void GetByKey_ShouldReturnANotification_KeyExists() { _sut = new Notifier(); _sut.AddNotification(new("key", "value")); Assert.NotNull(_sut.GetByKey("key").First()); }
public void GetByKey_MustThrowArgumentException_KeyIsNullOrEmpty() { _sut = new Notifier(); Assert.Throws <ArgumentException>(() => _sut.GetByKey(null)); }