Example #1
0
        protected override Task Context()
        {
            _distributedTableFormulaMapper = A.Fake <DistributedTableFormulaMapper>();
            _ontogenyRepository            = A.Fake <IOntogenyRepository>();

            sut = new OntogenyMapper(_distributedTableFormulaMapper, _ontogenyRepository);

            _distributedTableFormula = new DistributedTableFormula();
            _snapshotTable           = new Snapshots.DistributedTableFormula();
            A.CallTo(() => _distributedTableFormulaMapper.MapToSnapshot(_distributedTableFormula)).Returns(_snapshotTable);

            _simulationSubject = A.Fake <ISimulationSubject>();

            return(Task.FromResult(true));
        }