Esempio n. 1
0
 public ContextFaker()
 {
     FakeContext = A.Fake <IBeerContext>();
     A.CallTo(() => FakeContext.Beers).Returns(FakerExtensions.ListFaker <Beer> .GetFake(Beers));
 }
Esempio n. 2
0
 public BeerBusiness(IBeerContext beerContext)
 {
     _beerContext = beerContext;
 }
 public BeerBusinessTests()
 {
     _beerContext  = new ContextFaker().FakeContext;
     _beerBusiness = new BeerBusiness(_beerContext);
 }