public void UpdateEmailAlertsTest() { UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value int UserId = InsertDummyUser("tj_op"); //////////////////////////Get tribute of type 0 for userId////GetMyTributes unit test// int tributeId = 0; GetMyTributes _objtribute = new GetMyTributes(); _objtribute.UserId = UserId; object[] _param = { _objtribute, 0, 1, 1 }; if (_objtribute.CustomError == null) { List<GetMyTributes> Mytributes = new List<GetMyTributes>(); Mytributes = target.GetMyTributes(_param); Assert.AreEqual(true, Mytributes.Count > 0); tributeId = Mytributes[0].TributeId; } /////////////////////////// Tributes objTribute = new Tributes(); objTribute.UserTributeId = UserId; objTribute.TributeId = tributeId; objTribute.IsActive = false; object[] _Tributes = { objTribute }; // TODO: Initialize to an appropriate value target.UpdateEmailAlerts(_Tributes); /////GetMyTribute Unit test///// GetMyTributes objtribute = new GetMyTributes(); objtribute.UserId = UserId; object[] param = { objtribute, tributeId }; List<GetMyTributes> mytribute = target.GetMyTribute(param); Assert.AreEqual(mytribute[0].TributeId, tributeId); if (mytribute[0].TributeId == tributeId) { Assert.AreEqual(false, mytribute[0].EmailAlert); } //Assert.Inconclusive("A method that does not return a value cannot be verified."); }