public override void Arrange() { base.Arrange(); MockTestEntitySet.Setup(s => s.FindAsync(It.IsAny <object[]>())).Returns(Task.FromResult(new TestEntity { Id = 1 })); }
public override void Arrange() { base.Arrange(); MockTestEntitySet.Setup(s => s.Find(It.IsAny <object[]>())).Returns(new TestEntity { Id = 1 }); }
public override void Arrange() { base.Arrange(); MockTestEntitySet.Setup(s => s.Remove(It.Is <TestEntity>(e => e.Id == 1))).Returns(new TestEntity { Id = 1 }); }