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