Ejemplo n.º 1
0
        public void CarInspectionFailedTest()
        {
            var domainModel = new Car(RegNo);
            var dataSource  = new InMemoryDataSource();

            _sut.Execute(domainModel, dataSource);

            var containSingle = dataSource.Cars.Should().ContainSingle(x => x.RegNo == RegNo).Subject;

            containSingle.InspectedAt.Should().Be(_inspectedAt);
            containSingle.InspectionApproved.Should().BeFalse();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor for the DataContext class.
 /// </summary>
 /// <param name="dataSource">The underlying data store.</param>
 public DataContext(InMemoryDataSource dataSource)
 {
     this.dataSource = dataSource;
 }