public void Setup() { repositoryMock = new Mock <IBillyRepository>(); repository = repositoryMock.Object; service = new BillyService(repository); }
/// <summary> /// Creates a new instance of the billy service /// </summary> /// <param name="billyRepository">billy repository dependency injection</param> public BillyService(IBillyRepository billyRepository) { this.billyRepository = billyRepository; }