public void Repo_Users_GetV1_Success() { var data = new TestDataFactory(UoW); data.Destroy(); data.CreateUsers(); var results = UoW.Users.Get(); results.Should().BeAssignableTo <IEnumerable <uvw_User> >(); results.Count().Should().Be(UoW.Users.Count()); }
public void Repo_Users_DeleteV1_Success() { var data = new TestDataFactory(UoW); data.Destroy(); data.CreateUsers(); var user = UoW.Users.Get(QueryExpressionFactory.GetQueryExpression <uvw_User>() .Where(x => x.UserName == TestDefaultConstants.UserName).ToLambda()).Single(); UoW.Users.Delete(user); UoW.Commit(); }
public void Repo_Users_UpdateV1_Success() { var data = new TestDataFactory(UoW); data.Destroy(); data.CreateUsers(); var user = UoW.Users.Get(QueryExpressionFactory.GetQueryExpression <uvw_User>() .Where(x => x.UserName == TestDefaultConstants.UserName).ToLambda()).Single(); user.FirstName += "(Updated)"; user.LastName += "(Updated)"; var result = UoW.Users.Update(user); UoW.Commit(); result.Should().BeAssignableTo <uvw_User>(); }