public override void AddRangeTest_BadFlow_Null() { TaskPublisher.Setup(x => x.RegisterTask(It.IsAny <String>(), It.Is <Subject>(x => x == Subject.ELASTIC_CREATE_OR_UPDATE))).Verifiable(); Assert.Throws <ArgumentNullException>(() => Repository.AddRange(null)); }