public void SetUp() { _groupServiceMock = new Mock <IExpenseGroupService>(); _userServiceMock = new Mock <IExpenseUserService>(); _expenseItemServiceMock = new Mock <IExpenseItemService>(); _SystemUnderTest = new ExpenseTrackerController(_groupServiceMock.Object, _userServiceMock.Object, _expenseItemServiceMock.Object); }
public void SetUp() { _groupServiceMock = new Mock <IExpenseGroupService>(); _userServiceMock = new Mock <IExpenseUserService>(); _expenseItemServiceMock = new Mock <IExpenseItemService>(); listExpenseItems = new List <ExpenseItem>() { new ExpenseItem() { Id = 1, Amount = 223, ExpenseGroupId = 1, UserId = 1, User = new ExpenseUser() { DisplayName = "Somu", Email = "*****@*****.**", Id = 1 }, Group = new ExpenseGroup { Id = 1, Name = "Test" } }, new ExpenseItem() { Id = 2, Amount = 50, ExpenseGroupId = 1, UserId = 1, User = new ExpenseUser() { DisplayName = "Somu", Email = "*****@*****.**", Id = 1 }, Group = new ExpenseGroup { Id = 1, Name = "Test" } }, new ExpenseItem() { Id = 3, Amount = 75, ExpenseGroupId = 1, UserId = 2, User = new ExpenseUser() { DisplayName = "Dipu", Email = "*****@*****.**", Id = 2 }, Group = new ExpenseGroup { Id = 1, Name = "Test" } } }; _SystemUnderTest = new ExpenseTrackerController(_groupServiceMock.Object, _userServiceMock.Object, _expenseItemServiceMock.Object); }
public void SetUp() { _groupServiceMock = new Mock <IExpenseGroupService>(); _userServiceMock = new Mock <IExpenseUserService>(); _expenseItemServiceMock = new Mock <IExpenseItemService>(); listExpenseGroup = new List <ExpenseGroup>() { new ExpenseGroup() { Id = 1, Name = "Group 1" }, new ExpenseGroup() { Id = 2, Name = "Group 2" }, new ExpenseGroup() { Id = 3, Name = "Group 3" } }; _SystemUnderTest = new ExpenseTrackerController(_groupServiceMock.Object, _userServiceMock.Object, _expenseItemServiceMock.Object); }