public void GetHoldingsTest() { _provider.CreateUser(_user); var actual = _provider.GetHolding(_user, _stock); Assert.AreEqual(0, actual); }
public Guid RegisterUser(Guid userId, string username) { var user = new User { UserId = userId, Username = username }; _users.Add(user.UserId, user); _holdingsProvider.CreateUser(user); _bankingProvider.CreateAccount(user); return(user.UserId); }