CYCAMORE
Loading...
Searching...
No Matches
src/enrichment_tests.h
Go to the documentation of this file.
1#ifndef CYCAMORE_SRC_ENRICHMENT_TESTS_
2#define CYCAMORE_SRC_ENRICHMENT_TESTS_
3
4#include <gtest/gtest.h>
5
6#include <boost/shared_ptr.hpp>
7
8#include "test_context.h"
9#include "env.h"
10#include "exchange_context.h"
11#include "material.h"
12
13#include "enrichment.h"
14
15namespace cycamore {
16
17// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
18class EnrichmentTest : public ::testing::Test {
19 protected:
20 cyclus::TestContext tc_;
21 Enrichment* src_facility;
23 cyclus::Composition::Ptr recipe;
24 TestFacility* trader;
25
27
28 bool order_prefs;
29
30 double reserves;
31
32 virtual void SetUp();
33 virtual void TearDown();
36 cyclus::Material::Ptr GetMat(double qty);
38 cyclus::Material::Ptr GetReqMat(double qty, double enr);
39 void DoAddMat(cyclus::Material::Ptr mat);
40 cyclus::Material::Ptr DoRequest();
41 cyclus::Material::Ptr DoBid(cyclus::Material::Ptr mat);
42 cyclus::Material::Ptr DoOffer(cyclus::Material::Ptr mat);
43 cyclus::Material::Ptr DoEnrich(cyclus::Material::Ptr mat, double qty);
46 boost::shared_ptr< cyclus::ExchangeContext<cyclus::Material> >
47 GetContext(int nreqs, int nvalid);
48};
49
50} // namespace cycamore
51
52#endif // CYCAMORE_SRC_ENRICHMENT_FACILITY_TESTS_
cyclus::Material::Ptr DoBid(cyclus::Material::Ptr mat)
cyclus::Material::Ptr DoOffer(cyclus::Material::Ptr mat)
cyclus::Material::Ptr DoEnrich(cyclus::Material::Ptr mat, double qty)
void DoAddMat(cyclus::Material::Ptr mat)
cyclus::Material::Ptr GetMat(double qty)
cyclus::Material::Ptr DoRequest()
boost::shared_ptr< cyclus::ExchangeContext< cyclus::Material > > GetContext(int nreqs, int nvalid)
virtual void TearDown()
cyclus::Material::Ptr GetReqMat(double qty, double enr)