public void Delete_CallsContextDelete_WhenCalled( [NotNull, Frozen] IPersonsContext context, [NotNull] PersonsRepository sut) { // Arrange // Act sut.Delete(-1); // Assert context.Received().Delete(-1); }
public void All_CallsContextPersons_WhenCalled( [NotNull, Frozen] IPersonsContext context, [NotNull] PersonsRepository sut) { // Arrange // Act // ReSharper disable once UnusedVariable IQueryable <IPerson> actual = sut.All; // Assert context.Received().Persons(); }