Ejemplo n.º 1
0
            public void CreatesARecordWhenThereWasNoRecordForThisTypeBefore(Type supported)
            {
                Set(supported, someDate);

                var allRecords = TestAdapter.GetAll().ToList();

                allRecords.Should().HaveCount(1);
                allRecords[0].Since.Should().Be(someDate);
            }
Ejemplo n.º 2
0
            public void UpdatesARecordToNullWhenThereWasARecordForThisTypeBefore(Type supported)
            {
                Set(supported, someDate);

                Set(supported, null);

                var allRecords = TestAdapter.GetAll().ToList();

                allRecords[0].Since.Should().Be(null);
            }